Split massive CModHandler class/file into multiple parts:

- IdentifierStorage is now a separate handler in VLC
- Renamed ModHandler::Incompatibility exception to ModIncompatibility
- Extracted ModScope namespace from ModHandler
- Extracted ModUtilities namespace from ModHandler
- Split CModHandler.cpp on per-class basis
- Replaced some direct members with unique_ptr to reduce header includes
This commit is contained in:
Ivan Savenko
2023-07-30 22:17:47 +03:00
parent 8ea7e91189
commit 62fddca21e
101 changed files with 1532 additions and 1279 deletions
+3 -3
View File
@@ -24,7 +24,7 @@
#include "../../lib/filesystem/Filesystem.h"
#include "../../lib/battle/IBattleInfoCallback.h"
#include "../../lib/CGameInfoCallback.h"
#include "../../lib/CModHandler.h"
#include "../../lib/modding/ModScope.h"
VCMI_LIB_NAMESPACE_BEGIN
@@ -511,14 +511,14 @@ int LuaContext::loadModule()
registar->pushMetatable(L);
}
else if(scope == CModHandler::scopeBuiltin())
else if(scope == ModScope::scopeBuiltin())
{
// boost::algorithm::replace_all(modulePath, boost::is_any_of("\\/ "), "");
boost::algorithm::replace_all(modulePath, ".", "/");
auto *loader = CResourceHandler::get(CModHandler::scopeBuiltin());
auto *loader = CResourceHandler::get(ModScope::scopeBuiltin());
modulePath = "scripts/lib/" + modulePath;