aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2008-10-20 21:47:46 +0000
committerTorbjörn Andersson2008-10-20 21:47:46 +0000
commit07220529dc8978b2c2e94662ae9b5a2ec910369e (patch)
treebf8ad696eff7d6e0051128df3e1adfd05e34bbd5 /engines
parent871375d4b518681e7782502c8f2df07bf85b27a5 (diff)
downloadscummvm-rg350-07220529dc8978b2c2e94662ae9b5a2ec910369e.tar.gz
scummvm-rg350-07220529dc8978b2c2e94662ae9b5a2ec910369e.tar.bz2
scummvm-rg350-07220529dc8978b2c2e94662ae9b5a2ec910369e.zip
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... svn-id: r34829
Diffstat (limited to 'engines')
-rw-r--r--engines/sword1/sword1.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp
index 4b402ffe97..378d3b84bb 100644
--- a/engines/sword1/sword1.cpp
+++ b/engines/sword1/sword1.cpp
@@ -211,8 +211,13 @@ SaveStateList SwordMetaEngine::listSaves(const char *target) const {
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 {