diff options
author | Johannes Schickel | 2016-02-25 19:55:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | 6452939b189ac6c0e895ba9eee39b0028ffcdcbe (patch) | |
tree | 1b6fd32d0e9ec5751f8a96993c726b91e6818a82 /engines/hopkins | |
parent | e5feb43392f02917f7482a935dc4f04b1f0be250 (diff) | |
download | scummvm-rg350-6452939b189ac6c0e895ba9eee39b0028ffcdcbe.tar.gz scummvm-rg350-6452939b189ac6c0e895ba9eee39b0028ffcdcbe.tar.bz2 scummvm-rg350-6452939b189ac6c0e895ba9eee39b0028ffcdcbe.zip |
HOPKINS: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines/hopkins')
-rw-r--r-- | engines/hopkins/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hopkins/detection.cpp b/engines/hopkins/detection.cpp index 670efb8898..cc1e84f5f8 100644 --- a/engines/hopkins/detection.cpp +++ b/engines/hopkins/detection.cpp @@ -153,7 +153,6 @@ SaveStateList HopkinsMetaEngine::listSaves(const char *target) const { Common::String pattern = Common::String::format("%s.0##", target); filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); // Sort to get the files in numerical order Hopkins::hopkinsSavegameHeader header; @@ -178,6 +177,8 @@ SaveStateList HopkinsMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |