mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Android: allow run without scripting
This commit is contained in:
parent
11e6e0d6f7
commit
4da8341024
@ -182,12 +182,21 @@ void PoolImpl::serializeState(const bool saving, JsonNode & data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ScriptHandler::ScriptHandler()
|
ScriptHandler::ScriptHandler()
|
||||||
|
:erm(nullptr), lua(nullptr)
|
||||||
{
|
{
|
||||||
boost::filesystem::path filePath = VCMIDirs::get().fullLibraryPath("scripting", "vcmiERM");
|
boost::filesystem::path filePath = VCMIDirs::get().fullLibraryPath("scripting", "vcmiERM");
|
||||||
|
|
||||||
|
if (boost::filesystem::exists(filePath))
|
||||||
|
{
|
||||||
erm = CDynLibHandler::getNewScriptingModule(filePath);
|
erm = CDynLibHandler::getNewScriptingModule(filePath);
|
||||||
|
}
|
||||||
|
|
||||||
filePath = VCMIDirs::get().fullLibraryPath("scripting", "vcmiLua");
|
filePath = VCMIDirs::get().fullLibraryPath("scripting", "vcmiLua");
|
||||||
|
|
||||||
|
if (boost::filesystem::exists(filePath))
|
||||||
|
{
|
||||||
lua = CDynLibHandler::getNewScriptingModule(filePath);
|
lua = CDynLibHandler::getNewScriptingModule(filePath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ScriptHandler::~ScriptHandler() = default;
|
ScriptHandler::~ScriptHandler() = default;
|
||||||
|
Loading…
Reference in New Issue
Block a user