[Scummvm-cvs-logs] SF.net SVN: scummvm:[34829] scummvm/trunk/engines/sword1/sword1.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Mon Oct 20 23:47:46 CEST 2008
Revision: 34829
http://scummvm.svn.sourceforge.net/scummvm/?rev=34829&view=rev
Author: eriktorbjorn
Date: 2008-10-20 21:47:46 +0000 (Mon, 20 Oct 2008)
Log Message:
-----------
Fix - at least partially - the list of savegames for the launcher's load dialog.
But I suspect there are still bugs lurking in that code. I really dislike how
Broken Sword 1 handles savegames...
Modified Paths:
--------------
scummvm/trunk/engines/sword1/sword1.cpp
Modified: scummvm/trunk/engines/sword1/sword1.cpp
===================================================================
--- scummvm/trunk/engines/sword1/sword1.cpp 2008-10-20 04:39:10 UTC (rev 34828)
+++ scummvm/trunk/engines/sword1/sword1.cpp 2008-10-20 21:47:46 UTC (rev 34829)
@@ -211,9 +211,14 @@
uint8 stop;
char saveDesc[32];
do {
- // Obtain the last digit of the filename, since they correspond to the save slot
- int slotNum = atoi(file->c_str() + file->size() - 1);
+ if (file->compareToIgnoreCase("SAVEGAME.INF") == 0) {
+ file++;
+ continue;
+ }
+ // Obtain the last 3 digits of the filename, since they correspond to the save slot
+ int slotNum = atoi(file->c_str() + file->size() - 3);
+
uint pos = 0;
do {
stop = in->readByte();
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