mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
KYRA: Let listSaves return list sorted on slot numbers.
This commit is contained in:
parent
1e74033618
commit
56fc42c2f7
@ -246,7 +246,6 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const {
|
||||
|
||||
Common::StringArray filenames;
|
||||
filenames = saveFileMan->listSavefiles(pattern);
|
||||
Common::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) {
|
||||
@ -269,6 +268,8 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const {
|
||||
}
|
||||
}
|
||||
|
||||
// Sort saves based on slot number.
|
||||
Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
|
||||
return saveList;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user