diff --git a/source/main/resources/skin_fileformat/SkinFileFormat.cpp b/source/main/resources/skin_fileformat/SkinFileFormat.cpp index ff2d419b53..4d81cfd80f 100644 --- a/source/main/resources/skin_fileformat/SkinFileFormat.cpp +++ b/source/main/resources/skin_fileformat/SkinFileFormat.cpp @@ -22,6 +22,7 @@ #include "SkinFileFormat.h" #include "Application.h" +#include "Console.h" #include "Utils.h" #include @@ -67,11 +68,22 @@ std::vector> RoR::SkinParser::ParseSkins(Ogre::Dat } } } + + if (curr_skin) + { + App::GetConsole()->putMessage( + Console::CONSOLE_MSGTYPE_ACTOR, Console::CONSOLE_SYSTEM_WARNING, + fmt::format("Skin '{}' in file '{}' not properly closed with '}}'", + curr_skin->name, stream->getName())); + result.push_back(std::shared_ptr(curr_skin.release())); // Submit anyway + } } catch (Ogre::Exception& e) { - RoR::LogFormat("[RoR] Error parsing skin file '%s', message: %s", - stream->getName().c_str(), e.getFullDescription().c_str()); + App::GetConsole()->putMessage( + Console::CONSOLE_MSGTYPE_ACTOR, Console::CONSOLE_SYSTEM_WARNING, + fmt::format("Error parsing skin file '{}', message: {}", + stream->getName(), e.getFullDescription())); } return result; }