From 8305f0c87b667797509c8094955584048705578e Mon Sep 17 00:00:00 2001 From: iota97 Date: Tue, 5 Jan 2021 17:01:05 +0100 Subject: [PATCH] Save on game start --- UI/MainScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 6c65796b047a..f7ae0cc3f183 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -1274,6 +1274,7 @@ bool MainScreen::DrawBackgroundFor(UIContext &dc, const std::string &gamePath, f } UI::EventReturn MainScreen::OnGameSelected(UI::EventParams &e) { + g_Config.Save("MainScreen::OnGameSelected"); #ifdef _WIN32 std::string path = ReplaceAll(e.s, "\\", "/"); #else @@ -1328,6 +1329,7 @@ UI::EventReturn MainScreen::OnGameHighlight(UI::EventParams &e) { } UI::EventReturn MainScreen::OnGameSelectedInstant(UI::EventParams &e) { + g_Config.Save("MainScreen::OnGameSelectedInstant"); #ifdef _WIN32 std::string path = ReplaceAll(e.s, "\\", "/"); #else