TSAGE: Let listSaves return list sorted on slot numbers.

This commit is contained in:
Johannes Schickel 2016-02-25 19:55:14 +01:00
parent d7ae0df8e1
commit 6d46577174

View File

@ -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;
}