aboutsummaryrefslogtreecommitdiff
path: root/engines/composer
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-26 00:49:33 +0200
committerAdrian Frühwirth2018-03-26 01:07:31 +0200
commit77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1 (patch)
treea3aa74b9beadbe502e41eedc13be301933c72caa /engines/composer
parent25535c10c2f8ce70d50e719f5debaf2ee6840d74 (diff)
downloadscummvm-rg350-77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1.tar.gz
scummvm-rg350-77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1.tar.bz2
scummvm-rg350-77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1.zip
COMPOSER: Let listSaves return list sorted on slot numbers
Diffstat (limited to 'engines/composer')
-rw-r--r--engines/composer/detection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/composer/detection.cpp b/engines/composer/detection.cpp
index dd1ce2751c..72a8f8256f 100644
--- a/engines/composer/detection.cpp
+++ b/engines/composer/detection.cpp
@@ -514,7 +514,6 @@ SaveStateList ComposerMetaEngine::listSaves(const char *target) const {
Common::String pattern = Common::String::format("%s.??", target);
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) {
@@ -531,6 +530,7 @@ SaveStateList ComposerMetaEngine::listSaves(const char *target) const {
}
}
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}