aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index dba4aeccaa..a091c5885a 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -81,8 +81,15 @@ static const EnginePlugin *detectPlugin() {
// Make sure the gameid is set in the config manager, and that it is lowercase.
Common::String gameid(ConfMan.getActiveDomainName());
assert(!gameid.empty());
- if (ConfMan.hasKey("gameid"))
+ if (ConfMan.hasKey("gameid")) {
gameid = ConfMan.get("gameid");
+
+ // Set last selected game, that the game will be highlighted
+ // on RTL
+ ConfMan.set("lastselectedgame", ConfMan.getActiveDomainName(), Common::ConfigManager::kApplicationDomain);
+ ConfMan.flushToDisk();
+ }
+
gameid.toLowercase();
ConfMan.set("gameid", gameid);