diff options
author | Johannes Schickel | 2016-02-25 19:55:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | e5feb43392f02917f7482a935dc4f04b1f0be250 (patch) | |
tree | 57d4e7afb3f880383fb9180b6401f71bafa7c4b3 /engines | |
parent | 3def36396898c6a683c91d62bde331afdfa1325b (diff) | |
download | scummvm-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.cpp | 3 |
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; } |