mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
(Android) Added proper configurator behavior on application startup
This commit is contained in:
parent
ea8148bbf5
commit
1437207e91
|
@ -593,11 +593,15 @@ int main(int argc, char* argv[])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
Utils::Platform::Android::requestStoragePermission();
|
if (Utils::Platform::Android::checkConfigurationNeeded())
|
||||||
|
Utils::Platform::Android::startConfigurator();
|
||||||
|
|
||||||
while (AndroidVariables::sHold)
|
while (AndroidVariables::sHold)
|
||||||
SDL_Delay(20);
|
SDL_Delay(20);
|
||||||
|
|
||||||
|
if (Utils::Platform::Android::checkConfigurationNeeded())
|
||||||
|
exit(0);
|
||||||
|
|
||||||
Utils::Platform::Android::setDataDirectories();
|
Utils::Platform::Android::setDataDirectories();
|
||||||
Utils::Platform::Android::setROMDirectory();
|
Utils::Platform::Android::setROMDirectory();
|
||||||
#endif
|
#endif
|
||||||
|
@ -916,6 +920,8 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (Utils::Platform::Android::getCreateSystemDirectories())
|
||||||
|
SystemData::createSystemDirectories();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(APPLICATION_UPDATER)
|
#if defined(APPLICATION_UPDATER)
|
||||||
|
|
Loading…
Reference in a new issue