diff --git a/gframe/game.cpp b/gframe/game.cpp index 97dde382d..5695f8a77 100644 --- a/gframe/game.cpp +++ b/gframe/game.cpp @@ -2609,6 +2609,12 @@ void Game::SaveConfig() { gGameConfig->useIntegratedGpu = gSettings.chkIntegratedGPU->isChecked(); #endif gGameConfig->driver_type = static_cast(gSettings.cbVideoDriver->getItemData(gSettings.cbVideoDriver->getSelected())); +#ifdef __ANDROID__ + if(gGameConfig->Save(epro::format("{}/system.conf", porting::internal_storage))) { + Utils::FileCopy(epro::format("{}/system.conf", porting::internal_storage), EPRO_TEXT("./config/system.conf")); + return; + } +#endif gGameConfig->Save(EPRO_TEXT("./config/system.conf")); } Game::RepoGui* Game::AddGithubRepositoryStatusWindow(const GitRepo* repo) { diff --git a/gframe/game_config.cpp b/gframe/game_config.cpp index 24a502fb3..8f1b0a728 100644 --- a/gframe/game_config.cpp +++ b/gframe/game_config.cpp @@ -3,6 +3,7 @@ #include "game_config.h" #include #include "bufferio.h" +#include "porting.h" #include "utils.h" #include "config.h" #include "logging.h" @@ -11,6 +12,9 @@ namespace ygo { GameConfig::GameConfig() { +#ifdef __ANDROID__ + Load(epro::format("{}/system.conf", porting::internal_storage)); +#endif Load(EPRO_TEXT("./config/system.conf")); if(configs.empty()) { {