mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user