summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-04-23 12:03:47 +0000
committerpeter1138 <peter1138@openttd.org>2008-04-23 12:03:47 +0000
commit24cccc83332476b7453368db9cad9570a602ec63 (patch)
treee43d502e9416de92a3447677b65990a110b32240 /src/fios.h
parentfff763b5ce3a2f15d4a49ae5d7dc5edb0cf195dd (diff)
downloadopenttd-24cccc83332476b7453368db9cad9570a602ec63.tar.xz
(svn r12848) -Cleanup/Codechange: Use correct variable types, don't prefix with _ for non-globals, and use implicit enum numbering.
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/fios.h b/src/fios.h
index ccc548286..ca95b3578 100644
--- a/src/fios.h
+++ b/src/fios.h
@@ -42,23 +42,23 @@ enum FileType {
FT_HEIGHTMAP, ///< heightmap file
};
-enum {
- FIOS_TYPE_DRIVE = 0,
- FIOS_TYPE_PARENT = 1,
- FIOS_TYPE_DIR = 2,
- FIOS_TYPE_FILE = 3,
- FIOS_TYPE_OLDFILE = 4,
- FIOS_TYPE_SCENARIO = 5,
- FIOS_TYPE_OLD_SCENARIO = 6,
- FIOS_TYPE_DIRECT = 7,
- FIOS_TYPE_PNG = 8,
- FIOS_TYPE_BMP = 9,
- FIOS_TYPE_INVALID = 255,
+enum FiosType {
+ FIOS_TYPE_DRIVE,
+ FIOS_TYPE_PARENT,
+ FIOS_TYPE_DIR,
+ FIOS_TYPE_FILE,
+ FIOS_TYPE_OLDFILE,
+ FIOS_TYPE_SCENARIO,
+ FIOS_TYPE_OLD_SCENARIO,
+ FIOS_TYPE_DIRECT,
+ FIOS_TYPE_PNG,
+ FIOS_TYPE_BMP,
+ FIOS_TYPE_INVALID = 255,
};
/* Deals with finding savegames */
struct FiosItem {
- byte type;
+ FiosType type;
uint64 mtime;
char title[64];
char name[256 - 12 - 64];
@@ -82,11 +82,11 @@ extern SaveLoadDialogMode _saveload_mode; ///< defined in misc_gui.cpp
void ShowSaveLoadDialog(SaveLoadDialogMode mode);
/* Get a list of savegames */
-FiosItem *FiosGetSavegameList(int mode);
+FiosItem *FiosGetSavegameList(SaveLoadDialogMode mode);
/* Get a list of scenarios */
-FiosItem *FiosGetScenarioList(int mode);
+FiosItem *FiosGetScenarioList(SaveLoadDialogMode mode);
/* Get a list of Heightmaps */
-FiosItem *FiosGetHeightmapList(int mode);
+FiosItem *FiosGetHeightmapList(SaveLoadDialogMode mode);
/* Free the list of savegames */
void FiosFreeSavegameList();
/* Browse to. Returns a filename w/path if we reached a file. */