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
This commit is contained in:
Torbjörn Andersson 2008-10-20 21:47:46 +00:00
parent 871375d4b5
commit 07220529dc

View File

@ -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 {