diff options
author | Johannes Schickel | 2016-02-25 19:55:14 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | c5f4197fd0f7d5c792ce24ec007d61ba3ed6044b (patch) | |
tree | e971b7a62b17dfa070a3f4f5008aba41a12d3b6e /engines | |
parent | 37c1a06df90e8b59c54fd345b3a76ff1399f8644 (diff) | |
download | scummvm-rg350-c5f4197fd0f7d5c792ce24ec007d61ba3ed6044b.tar.gz scummvm-rg350-c5f4197fd0f7d5c792ce24ec007d61ba3ed6044b.tar.bz2 scummvm-rg350-c5f4197fd0f7d5c792ce24ec007d61ba3ed6044b.zip |
PARALLACTION: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/parallaction/detection.cpp b/engines/parallaction/detection.cpp index daeee1fee4..0c7ebb2b05 100644 --- a/engines/parallaction/detection.cpp +++ b/engines/parallaction/detection.cpp @@ -273,7 +273,6 @@ SaveStateList ParallactionMetaEngine::listSaves(const char *target) const { Common::String pattern(ConfMan.getDomain(target)->getVal("gameid") + ".0##"); Common::StringArray 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) { @@ -290,6 +289,8 @@ SaveStateList ParallactionMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |