(svn r11713) -Codechange: Move some declarations and definitions in a more logical disposition

This commit is contained in:
belugas
2007-12-28 03:14:55 +00:00
parent ad061e6d60
commit db45093f7b
8 changed files with 22 additions and 17 deletions

View File

@@ -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 */