Android: Reload game config on storage permission.

Before, we were saving out the global values on top of the game config
while loading them.

We seem to get the storage permission event twice sometimes, which is what
causes this to happen after we've already loaded the game config.
This commit is contained in:
Unknown W. Brackets committed 2020-03-08 15:26:44 -07:00
1 parent fc8306dde1
commit 9d7dc97c3e
3 files changed
+12 -3

No files matched your search

+1 -1
View File
@@ -1174,7 +1174,7 @@ void HandleGlobalMessage(const std::string &msg, const std::string &value) {
// and I can't risk it before 1.9.0.
int gpuBackend = g_Config.iGPUBackend;
ILOG("Reloading config after storage permission grant.");
g_Config.Load();
g_Config.Reload();
PostLoadConfig();
g_Config.iGPUBackend = gpuBackend;
}