1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

NKAI: android fixes

This commit is contained in:
Andrii Danylchenko
2022-10-02 14:23:03 +03:00
parent 3600d09ece
commit 8f599ed043
3 changed files with 41 additions and 28 deletions

View File

@@ -25,6 +25,7 @@
#ifdef VCMI_ANDROID
#include "AI/VCAI/VCAI.h"
#include "AI/Nullkiller/AIGateway.h"
#include "AI/BattleAI/BattleAI.h"
#endif
@@ -96,7 +97,12 @@ std::shared_ptr<rett> createAny(const boost::filesystem::path & libpath, const s
template<>
std::shared_ptr<CGlobalAI> createAny(const boost::filesystem::path & libpath, const std::string & methodName)
{
return std::make_shared<VCAI>();
if(libpath.stem() == "libNullkiller") {
return std::make_shared<NKAI::AIGateway>();
}
else{
return std::make_shared<VCAI>();
}
}
template<>