Skip to content

Commit

Permalink
Save on game start
Browse files Browse the repository at this point in the history
  • Loading branch information
iota97 committed Jan 5, 2021
1 parent 20d161f commit 8305f0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UI/MainScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8305f0c

Please sign in to comment.