aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2016-02-25 19:55:14 +0100
committerJohannes Schickel2016-02-25 21:39:45 +0100
commit6d465771745fa4832e5d95662e9f58f7ea4579eb (patch)
treee1e4e5df12e67d790ecaf877ace73855094fdb98 /engines
parentd7ae0df8e105e8d5593a1b92a0834e8c19aece21 (diff)
downloadscummvm-rg350-6d465771745fa4832e5d95662e9f58f7ea4579eb.tar.gz
scummvm-rg350-6d465771745fa4832e5d95662e9f58f7ea4579eb.tar.bz2
scummvm-rg350-6d465771745fa4832e5d95662e9f58f7ea4579eb.zip
TSAGE: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/detection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tsage/detection.cpp b/engines/tsage/detection.cpp
index f85d8433f3..7784a3de1a 100644
--- a/engines/tsage/detection.cpp
+++ b/engines/tsage/detection.cpp
@@ -117,7 +117,6 @@ public:
pattern += ".###";
Common::StringArray filenames = g_system->getSavefileManager()->listSavefiles(pattern);
- sort(filenames.begin(), filenames.end());
TsAGE::tSageSavegameHeader header;
SaveStateList saveList;
@@ -141,6 +140,8 @@ public:
}
}
+ // Sort saves based on slot number.
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}