[Scummvm-cvs-logs] SF.net SVN: scummvm:[33413] scummvm/trunk/common/config-manager.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Jul 29 18:12:43 CEST 2008
Revision: 33413
http://scummvm.svn.sourceforge.net/scummvm/?rev=33413&view=rev
Author: fingolfin
Date: 2008-07-29 16:12:42 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
CONFIGMAN: Store domains in the order they were added
Modified Paths:
--------------
scummvm/trunk/common/config-manager.cpp
Modified: scummvm/trunk/common/config-manager.cpp
===================================================================
--- scummvm/trunk/common/config-manager.cpp 2008-07-29 16:09:10 UTC (rev 33412)
+++ scummvm/trunk/common/config-manager.cpp 2008-07-29 16:12:42 UTC (rev 33413)
@@ -638,6 +638,10 @@
// the given name already exists?
_gameDomains[domName];
+
+ // Add it to the _domainSaveOrder, if it's not already in there
+ if (find(_domainSaveOrder.begin(), _domainSaveOrder.end(), domName) == _domainSaveOrder.end())
+ _domainSaveOrder.push_back(domName);
}
void ConfigManager::removeGameDomain(const String &domName) {
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