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