diff options
author | Johannes Schickel | 2016-02-25 19:55:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | 3def36396898c6a683c91d62bde331afdfa1325b (patch) | |
tree | 3dfb14818da90f2c8f7475632f5b6771f3057f97 /engines | |
parent | c5c1209edda8afc6223c028bc4eb2ef54fb4c6cc (diff) | |
download | scummvm-rg350-3def36396898c6a683c91d62bde331afdfa1325b.tar.gz scummvm-rg350-3def36396898c6a683c91d62bde331afdfa1325b.tar.bz2 scummvm-rg350-3def36396898c6a683c91d62bde331afdfa1325b.zip |
DREAMWEB: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/dreamweb/detection.cpp b/engines/dreamweb/detection.cpp index 4fc624c2f3..853047ccc7 100644 --- a/engines/dreamweb/detection.cpp +++ b/engines/dreamweb/detection.cpp @@ -128,7 +128,6 @@ bool DreamWebMetaEngine::createInstance(OSystem *syst, Engine **engine, const AD SaveStateList DreamWebMetaEngine::listSaves(const char *target) const { Common::SaveFileManager *saveFileMan = g_system->getSavefileManager(); Common::StringArray files = saveFileMan->listSavefiles("DREAMWEB.D##"); - Common::sort(files.begin(), files.end()); SaveStateList saveList; for (uint i = 0; i < files.size(); ++i) { @@ -146,6 +145,8 @@ SaveStateList DreamWebMetaEngine::listSaves(const char *target) const { saveList.push_back(sd); } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |