[Scummvm-cvs-logs] SF.net SVN: scummvm:[41237] scummvm/trunk/base/main.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat Jun 6 19:37:31 CEST 2009
Revision: 41237
http://scummvm.svn.sourceforge.net/scummvm/?rev=41237&view=rev
Author: sev
Date: 2009-06-06 17:37:31 +0000 (Sat, 06 Jun 2009)
Log Message:
-----------
Implement FR#2090830: "GUI: RTL should focus game list on the last game played"
Modified Paths:
--------------
scummvm/trunk/base/main.cpp
Modified: scummvm/trunk/base/main.cpp
===================================================================
--- scummvm/trunk/base/main.cpp 2009-06-06 17:37:15 UTC (rev 41236)
+++ scummvm/trunk/base/main.cpp 2009-06-06 17:37:31 UTC (rev 41237)
@@ -81,8 +81,15 @@
// 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list