mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-16 23:19:49 +00:00
TSAGE: Let listSaves return list sorted on slot numbers.
This commit is contained in:
parent
d7ae0df8e1
commit
6d46577174
@ -117,7 +117,6 @@ public:
|
||||
pattern += ".###";
|
||||
|
||||
Common::StringArray filenames = g_system->getSavefileManager()->listSavefiles(pattern);
|
||||
sort(filenames.begin(), filenames.end());
|
||||
TsAGE::tSageSavegameHeader header;
|
||||
|
||||
SaveStateList saveList;
|
||||
@ -141,6 +140,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// Sort saves based on slot number.
|
||||
Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
|
||||
return saveList;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user