mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Android fix
This commit is contained in:
		| @@ -47,17 +47,17 @@ shared_ptr<rett> createAny(const boost::filesystem::path& libpath, const std::st | ||||
| #ifdef VCMI_ANDROID | ||||
| 	// this is awful but it seems using shared libraries on some devices is even worse | ||||
| 	const std::string filename = libpath.filename().string(); | ||||
| 	if (filename != "libVCAI.so") | ||||
| 	if (filename == "libVCAI.so") | ||||
| 	{ | ||||
| 		getName = (TGetNameFun)VCAI_GetAiName; | ||||
| 		getAI = (TGetAIFun)VCAI_GetNewAI; | ||||
| 	} | ||||
| 	else if (filename != "libStupidAI.so") | ||||
| 	else if (filename == "libStupidAI.so") | ||||
| 	{ | ||||
| 		getName = (TGetNameFun)StupidAI_GetAiName; | ||||
| 		getAI = (TGetAIFun)StupidAI_GetNewBattleAI; | ||||
| 	} | ||||
| 	else if (filename != "libBattleAI.so") | ||||
| 	else if (filename == "libBattleAI.so") | ||||
| 	{ | ||||
| 		getName = (TGetNameFun)BattleAI_GetAiName; | ||||
| 		getAI = (TGetAIFun)BattleAI_GetNewBattleAI; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user