1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-19 00:17:56 +02:00

fix android build

This commit is contained in:
Andrii Danylchenko
2018-05-25 22:08:14 +03:00
parent 20161a2449
commit ee033e9c9c
6 changed files with 27 additions and 7 deletions

View File

@ -170,10 +170,17 @@ void CVCMIServer::run()
#endif
startAsyncAccept();
#ifndef VCMI_ANDROID
if(shm)
{
shm->sr->setToReadyAndNotify(port);
}
#else
CAndroidVMHelper vmHelper;
vmHelper.callStaticVoidMethod(CAndroidVMHelper::NATIVE_METHODS_DEFAULT_CLASS, "onServerReady");
vmHelper.Detach();
#endif
}
while(state == EServerState::LOBBY || state == EServerState::GAMEPLAY_STARTING)