1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

show loading indicator when starting local server

single player or hosting a multiplayer game
This commit is contained in:
Andrey Filipenkov
2022-08-16 12:54:44 +03:00
parent 2af7c29163
commit 3ab21d8491
10 changed files with 78 additions and 15 deletions

View File

@@ -441,7 +441,6 @@ int main(int argc, char * argv[])
#ifndef VCMI_NO_THREADED_LOAD
// todo ios
#ifdef VCMI_ANDROID // android loads the data quite slowly so we display native progressbar to prevent having only black screen for few seconds
{
CAndroidVMHelper vmHelper;
@@ -1322,7 +1321,6 @@ static void handleEvent(SDL_Event & ev)
{
if((ev.type==SDL_QUIT) ||(ev.type == SDL_KEYDOWN && ev.key.keysym.sym==SDLK_F4 && (ev.key.keysym.mod & KMOD_ALT)))
{
// todo ios
#ifdef VCMI_ANDROID
handleQuit(false);
#else