Codechange: use std::sort() to sort file lists

This commit is contained in:
glx
2019-04-11 22:52:41 +02:00
committed by PeterN
parent b52561fd38
commit 5b77102b63
3 changed files with 12 additions and 15 deletions

View File

@@ -107,6 +107,7 @@ struct FiosItem {
uint64 mtime;
char title[64];
char name[MAX_PATH];
bool operator< (const FiosItem &other) const;
};
/** List of file information. */
@@ -227,6 +228,4 @@ void FiosMakeSavegameName(char *buf, const char *name, const char *last);
FiosType FiosGetSavegameListCallback(SaveLoadOperation fop, const char *file, const char *ext, char *title, const char *last);
int CDECL CompareFiosItems(const FiosItem *a, const FiosItem *b);
#endif /* FIOS_H */