aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2016-02-25 19:55:13 +0100
committerJohannes Schickel2016-02-25 21:39:45 +0100
commite5feb43392f02917f7482a935dc4f04b1f0be250 (patch)
tree57d4e7afb3f880383fb9180b6401f71bafa7c4b3 /engines
parent3def36396898c6a683c91d62bde331afdfa1325b (diff)
downloadscummvm-rg350-e5feb43392f02917f7482a935dc4f04b1f0be250.tar.gz
scummvm-rg350-e5feb43392f02917f7482a935dc4f04b1f0be250.tar.bz2
scummvm-rg350-e5feb43392f02917f7482a935dc4f04b1f0be250.zip
FULLPIPE: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/detection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/fullpipe/detection.cpp b/engines/fullpipe/detection.cpp
index ccd55935e6..99fbdc4b82 100644
--- a/engines/fullpipe/detection.cpp
+++ b/engines/fullpipe/detection.cpp
@@ -111,7 +111,6 @@ SaveStateList FullpipeMetaEngine::listSaves(const char *target) const {
Common::String pattern("fullpipe.s##");
filenames = saveFileMan->listSavefiles(pattern);
- sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
SaveStateList saveList;
for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
@@ -130,6 +129,8 @@ SaveStateList FullpipeMetaEngine::listSaves(const char *target) const {
}
}
+ // Sort saves based on slot number.
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}