Only pop up the config save error after main and settings screens.

This commit is contained in:
Henrik Rydgård committed 2021-08-07 10:47:11 +02:00
1 parent 86c5a17d1e
commit 96d04e582b
3 files changed
+7 -3

No files matched your search

+4 -1
View File
@@ -1232,7 +1232,10 @@ void GameSettingsScreen::onFinish(DialogResult result) {
Reporting::Enable(enableReports_, "report.ppsspp.org");
Reporting::UpdateConfig();
g_Config.Save("GameSettingsScreen::onFinish");
if (!g_Config.Save("GameSettingsScreen::onFinish")) {
System_SendMessage("toast", "Failed to save settings!\nCheck permissions, or try to restart the device.");
}
if (editThenRestore_) {
// In case we didn't have the title yet before, try again.
std::shared_ptr<GameInfo> info = g_gameInfoCache->GetInfo(nullptr, gamePath_, 0);