mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix android build
This commit is contained in:
@@ -1118,12 +1118,10 @@ int main(int argc, char * argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef VCMI_ANDROID
|
#ifdef VCMI_ANDROID
|
||||||
void CVCMIServer::create(const std::vector<std::string> & args)
|
void CVCMIServer::create()
|
||||||
{
|
{
|
||||||
const char * foo = "android-server";
|
const char * foo = "android-server";
|
||||||
std::vector<const void *> argv = {foo};
|
std::vector<const void *> argv = {foo};
|
||||||
for(auto & a : args)
|
|
||||||
argv.push_back(a.c_str());
|
|
||||||
main(argv.size(), reinterpret_cast<char **>(const_cast<void **>(&*argv.begin())));
|
main(argv.size(), reinterpret_cast<char **>(const_cast<void **>(&*argv.begin())));
|
||||||
}
|
}
|
||||||
#elif defined(SINGLE_PROCESS_APP)
|
#elif defined(SINGLE_PROCESS_APP)
|
||||||
|
@@ -114,7 +114,7 @@ public:
|
|||||||
ui8 getIdOfFirstUnallocatedPlayer() const;
|
ui8 getIdOfFirstUnallocatedPlayer() const;
|
||||||
|
|
||||||
#ifdef VCMI_ANDROID
|
#ifdef VCMI_ANDROID
|
||||||
static void create(const std::vector<std::string> & args);
|
static void create();
|
||||||
#elif defined(SINGLE_PROCESS_APP)
|
#elif defined(SINGLE_PROCESS_APP)
|
||||||
static void create(boost::condition_variable * cond, const std::vector<std::string> & args);
|
static void create(boost::condition_variable * cond, const std::vector<std::string> & args);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user