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