Merge pull request #13878 from iota97/main-save

Save on game start
This commit is contained in:
Henrik Rydgård 2021-01-06 12:19:37 +01:00 committed by GitHub
commit 1ee7faacae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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