mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
(Android) Reverted to requiring full filesystem access for the application
This commit is contained in:
parent
83ff89acb2
commit
0deec0865d
|
@ -546,10 +546,6 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
std::locale::global(std::locale("C"));
|
std::locale::global(std::locale("C"));
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
|
||||||
Utils::Platform::Android::setDataDirectories();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
// This is a workaround to disable the incredibly annoying save state functionality in
|
// This is a workaround to disable the incredibly annoying save state functionality in
|
||||||
// macOS which forces a restore of the previous window state. The problem is that this
|
// macOS which forces a restore of the previous window state. The problem is that this
|
||||||
|
@ -596,19 +592,22 @@ int main(int argc, char* argv[])
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__ANDROID__)
|
||||||
|
Utils::Platform::Android::requestStoragePermission();
|
||||||
|
|
||||||
|
while (AndroidVariables::sHold)
|
||||||
|
SDL_Delay(20);
|
||||||
|
|
||||||
|
Utils::Platform::Android::setDataDirectories();
|
||||||
|
Utils::Platform::Android::setROMDirectory();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!Settings::getInstance()->getBool("DebugFlag") &&
|
if (!Settings::getInstance()->getBool("DebugFlag") &&
|
||||||
Settings::getInstance()->getBool("DebugMode")) {
|
Settings::getInstance()->getBool("DebugMode")) {
|
||||||
Settings::getInstance()->setBool("Debug", true);
|
Settings::getInstance()->setBool("Debug", true);
|
||||||
Log::setReportingLevel(LogDebug);
|
Log::setReportingLevel(LogDebug);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
|
||||||
Utils::Platform::Android::startConfigurator();
|
|
||||||
while (AndroidVariables::sHold)
|
|
||||||
SDL_Delay(20);
|
|
||||||
Utils::Platform::Android::setROMDirectory();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(FREEIMAGE_LIB)
|
#if defined(FREEIMAGE_LIB)
|
||||||
// Call this ONLY when linking with FreeImage as a static library.
|
// Call this ONLY when linking with FreeImage as a static library.
|
||||||
FreeImage_Initialise();
|
FreeImage_Initialise();
|
||||||
|
|
Loading…
Reference in a new issue