[Scummvm-cvs-logs] SF.net SVN: scummvm:[34966] scummvm/trunk/gui/launcher.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sun Nov 9 19:35:26 CET 2008
Revision: 34966
http://scummvm.svn.sourceforge.net/scummvm/?rev=34966&view=rev
Author: thebluegr
Date: 2008-11-09 18:35:26 +0000 (Sun, 09 Nov 2008)
Log Message:
-----------
Gaps in the list of save games are now handled correctly in the GMM save/load dialogs
Modified Paths:
--------------
scummvm/trunk/gui/launcher.cpp
Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp 2008-11-09 17:53:37 UTC (rev 34965)
+++ scummvm/trunk/gui/launcher.cpp 2008-11-09 18:35:26 UTC (rev 34966)
@@ -747,8 +747,19 @@
_saveList = (*_plugin)->listSaves(_target.c_str());
int curSlot = 0;
+ int saveSlot = 0;
StringList saveNames;
for (SaveStateList::const_iterator x = _saveList.begin(); x != _saveList.end(); ++x) {
+ // Handle gaps in the list of save games
+ saveSlot = atoi(x->save_slot().c_str());
+ while (curSlot < saveSlot) {
+ SaveStateDescriptor dummySave(curSlot, "");
+ _saveList.insert_at(curSlot, dummySave);
+ saveNames.push_back(dummySave.description());
+ ++x; // sync save list pointer
+ curSlot++;
+ }
+
saveNames.push_back(x->description());
curSlot++;
}
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