diff options
author | Johannes Schickel | 2016-02-25 19:55:14 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | d7ae0df8e105e8d5593a1b92a0834e8c19aece21 (patch) | |
tree | 00390cdd69b59d0127832c0899943b3074989420 /engines | |
parent | 2da54704af0ddc5d4e11ca46d87ad2c2b898e70b (diff) | |
download | scummvm-rg350-d7ae0df8e105e8d5593a1b92a0834e8c19aece21.tar.gz scummvm-rg350-d7ae0df8e105e8d5593a1b92a0834e8c19aece21.tar.bz2 scummvm-rg350-d7ae0df8e105e8d5593a1b92a0834e8c19aece21.zip |
TOON: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toon/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/toon/detection.cpp b/engines/toon/detection.cpp index e38ae3d2f5..2ca2bce2ee 100644 --- a/engines/toon/detection.cpp +++ b/engines/toon/detection.cpp @@ -176,7 +176,6 @@ SaveStateList ToonMetaEngine::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) { @@ -208,6 +207,8 @@ SaveStateList ToonMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |