diff options
author | Johannes Schickel | 2016-02-25 19:55:14 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | cae26227a0a7a417f8183edb58e2cbd78b983f8d (patch) | |
tree | 963a6fa1bb1f7ae00e5752d1b88659b2c5cfd9ab /engines | |
parent | 525e5edd300cd5c717da0c7359411653352ea8d0 (diff) | |
download | scummvm-rg350-cae26227a0a7a417f8183edb58e2cbd78b983f8d.tar.gz scummvm-rg350-cae26227a0a7a417f8183edb58e2cbd78b983f8d.tar.bz2 scummvm-rg350-cae26227a0a7a417f8183edb58e2cbd78b983f8d.zip |
TINSEL: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tinsel/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tinsel/detection.cpp b/engines/tinsel/detection.cpp index 7cb291275c..0c7d0b0665 100644 --- a/engines/tinsel/detection.cpp +++ b/engines/tinsel/detection.cpp @@ -136,7 +136,6 @@ SaveStateList TinselMetaEngine::listSaves(const char *target) const { Common::String pattern = target; pattern = pattern + ".###"; Common::StringArray files = g_system->getSavefileManager()->listSavefiles(pattern); - sort(files.begin(), files.end()); // Sort (hopefully ensuring we are sorted numerically..) SaveStateList saveList; int slotNum = 0; @@ -160,6 +159,8 @@ SaveStateList TinselMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |