summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2019-04-11 22:52:41 +0200
committerPeterN <peter@fuzzle.org>2019-04-13 12:49:18 +0100
commit5b77102b63f77bfbad02ae3383b87fbef6e60e7d (patch)
tree2ba70a19ea4f3617d12206ccee34c3c34d58dfa7 /src/fios.h
parentb52561fd381e2c8230730e852406b85210993a98 (diff)
downloadopenttd-5b77102b63f77bfbad02ae3383b87fbef6e60e7d.tar.xz
Codechange: use std::sort() to sort file lists
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h3
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 */