diff options
author | glx <glx@openttd.org> | 2019-04-11 22:52:41 +0200 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-13 12:49:18 +0100 |
commit | 5b77102b63f77bfbad02ae3383b87fbef6e60e7d (patch) | |
tree | 2ba70a19ea4f3617d12206ccee34c3c34d58dfa7 /src/fios.h | |
parent | b52561fd381e2c8230730e852406b85210993a98 (diff) | |
download | openttd-5b77102b63f77bfbad02ae3383b87fbef6e60e7d.tar.xz |
Codechange: use std::sort() to sort file lists
Diffstat (limited to 'src/fios.h')
-rw-r--r-- | src/fios.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fios.h b/src/fios.h index 5688e88cf..7b10dea4c 100644 --- a/src/fios.h +++ b/src/fios.h @@ -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 */ |