aboutsummaryrefslogtreecommitdiff
path: root/engines/prince
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-26 00:51:34 +0200
committerAdrian Frühwirth2018-03-26 01:07:32 +0200
commit8ed5969ea1208f3c25fd193dbcdbae9436a7c75d (patch)
tree867532b4b36a71af3fdc9d0060feb41fa8554200 /engines/prince
parent77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1 (diff)
downloadscummvm-rg350-8ed5969ea1208f3c25fd193dbcdbae9436a7c75d.tar.gz
scummvm-rg350-8ed5969ea1208f3c25fd193dbcdbae9436a7c75d.tar.bz2
scummvm-rg350-8ed5969ea1208f3c25fd193dbcdbae9436a7c75d.zip
PRINCE: Let listSaves return list sorted on slot numbers
Diffstat (limited to 'engines/prince')
-rw-r--r--engines/prince/detection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/prince/detection.cpp b/engines/prince/detection.cpp
index a8fa305332..ce80fe5cab 100644
--- a/engines/prince/detection.cpp
+++ b/engines/prince/detection.cpp
@@ -188,7 +188,6 @@ SaveStateList PrinceMetaEngine::listSaves(const char *target) const {
pattern += ".###";
filenames = saveFileMan->listSavefiles(pattern);
- sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
SaveStateList saveList;
for (Common::StringArray::const_iterator filename = filenames.begin(); filename != filenames.end(); filename++) {
@@ -224,6 +223,7 @@ SaveStateList PrinceMetaEngine::listSaves(const char *target) const {
}
}
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}