aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorJohannes Schickel2016-02-25 19:55:13 +0100
committerJohannes Schickel2016-02-25 21:39:45 +0100
commit030871774455aec5368afbc8af757b585aee687a (patch)
tree76c1cacd513590472ef930a18dd30ccb5fd594b0 /engines/cine
parent8fce4b5f19d1fb2eb3075ca0d1f02da0123b5e79 (diff)
downloadscummvm-rg350-030871774455aec5368afbc8af757b585aee687a.tar.gz
scummvm-rg350-030871774455aec5368afbc8af757b585aee687a.tar.bz2
scummvm-rg350-030871774455aec5368afbc8af757b585aee687a.zip
CINE: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/detection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp
index dac7add16b..5e1ffadb1b 100644
--- a/engines/cine/detection.cpp
+++ b/engines/cine/detection.cpp
@@ -137,7 +137,6 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const {
Common::String pattern = target;
pattern += ".#";
Common::StringArray filenames = saveFileMan->listSavefiles(pattern);
- sort(filenames.begin(), filenames.end());
Common::StringArray::const_iterator file;
Common::String filename = target;
@@ -169,6 +168,8 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const {
delete in;
+ // Sort saves based on slot number.
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}