summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-28 03:14:55 +0000
committerbelugas <belugas@openttd.org>2007-12-28 03:14:55 +0000
commit5087a6cdd76276118bcba6bd4c14425da76eef7d (patch)
tree5fa7e416ee23b77433ef53bf2261dd19ce457fcf /src/fios.h
parente2efaaff876c153669571d859ba326169981a5d8 (diff)
downloadopenttd-5087a6cdd76276118bcba6bd4c14425da76eef7d.tar.xz
(svn r11713) -Codechange: Move some declarations and definitions in a more logical disposition
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/fios.h b/src/fios.h
index 30b435d0b..f6d7f3e59 100644
--- a/src/fios.h
+++ b/src/fios.h
@@ -23,14 +23,6 @@ enum {
MAX_FILE_SLOTS = 64
};
-/* Deals with finding savegames */
-struct FiosItem {
- byte type;
- uint64 mtime;
- char title[64];
- char name[256 - 12 - 64];
-};
-
enum SaveLoadDialogMode{
SLD_LOAD_GAME,
SLD_LOAD_SCENARIO,
@@ -54,9 +46,25 @@ enum {
FIOS_TYPE_INVALID = 255,
};
+/* Deals with finding savegames */
+struct FiosItem {
+ byte type;
+ uint64 mtime;
+ char title[64];
+ char name[256 - 12 - 64];
+};
+
+/* Deals with the type of the savegame, independent of extension */
+struct SmallFiosItem {
+ int mode; ///< savegame/scenario type (old, new)
+ char name[MAX_PATH]; ///< name
+ char title[255]; ///< internal name of the game
+};
+
/* Variables to display file lists */
extern FiosItem *_fios_list; ///< defined in misc_gui.cpp
extern int _fios_num; ///< defined in fios.cpp, read_only version of _fios_count
+extern SmallFiosItem _file_to_saveload;
extern SaveLoadDialogMode _saveload_mode; ///< defined in misc_gui.cpp
/* Launch save/load dialog */