mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
(Android) Fixed an issue where re-running the configurator would wipe the es_settings.xml file
This commit is contained in:
parent
21d6a4d1eb
commit
b7ff3e508b
|
@ -578,6 +578,8 @@ int main(int argc, char* argv[])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
|
bool resetTouchOverlay {false};
|
||||||
|
|
||||||
if (Utils::Platform::Android::checkConfigurationNeeded()) {
|
if (Utils::Platform::Android::checkConfigurationNeeded()) {
|
||||||
Utils::Platform::Android::startConfigurator();
|
Utils::Platform::Android::startConfigurator();
|
||||||
|
|
||||||
|
@ -588,10 +590,7 @@ int main(int argc, char* argv[])
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
// Always enable the touch overlay after running the configurator.
|
// Always enable the touch overlay after running the configurator.
|
||||||
if (!Settings::getInstance()->getBool("InputTouchOverlay")) {
|
resetTouchOverlay = true;
|
||||||
Settings::getInstance()->setBool("InputTouchOverlay", true);
|
|
||||||
Settings::getInstance()->saveFile();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Utils::Platform::Android::setDataDirectories();
|
Utils::Platform::Android::setDataDirectories();
|
||||||
|
@ -739,6 +738,13 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__ANDROID__)
|
||||||
|
if (resetTouchOverlay) {
|
||||||
|
Settings::getInstance()->setBool("InputTouchOverlay", true);
|
||||||
|
Settings::getInstance()->saveFile();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
// Check if the application release number has changed, which would normally mean that the
|
// Check if the application release number has changed, which would normally mean that the
|
||||||
// user has upgraded to a new version.
|
// user has upgraded to a new version.
|
||||||
|
|
Loading…
Reference in a new issue