mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
CINE: Let listSaves return list sorted on slot numbers.
This commit is contained in:
parent
8fce4b5f19
commit
0308717744
@ -137,7 +137,6 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const {
|
||||
Common::String pattern = target;
|
||||
pattern += ".#";
|
||||
Common::StringArray filenames = saveFileMan->listSavefiles(pattern);
|
||||
sort(filenames.begin(), filenames.end());
|
||||
Common::StringArray::const_iterator file;
|
||||
|
||||
Common::String filename = target;
|
||||
@ -169,6 +168,8 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const {
|
||||
|
||||
delete in;
|
||||
|
||||
// Sort saves based on slot number.
|
||||
Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
|
||||
return saveList;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user