summaryrefslogtreecommitdiff
path: root/hal.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-08-05 00:59:45 +0000
committerDarkvater <darkvater@openttd.org>2006-08-05 00:59:45 +0000
commita9251d2d02a17467343284442ee6857012e27c31 (patch)
tree6c1c325e24d7182ffd6868b3118786d9a3bcf41d /hal.h
parent198f6caf20bf425bd1d3c8b91291f58213f6b60b (diff)
downloadopenttd-a9251d2d02a17467343284442ee6857012e27c31.tar.xz
(svn r5767) - Cleanup: Improve upon the header file mess regarding fios. Move all relevant types from hal.h into fios.h, eliminate the unneccessary passing of a global variable, and extern variables in header files (declare in fios.c and misc_gui.c
Diffstat (limited to 'hal.h')
-rw-r--r--hal.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/hal.h b/hal.h
index 699d3f4d6..fcae56719 100644
--- a/hal.h
+++ b/hal.h
@@ -44,55 +44,6 @@ enum DriverType {
void GameLoop(void);
-
-// Deals with finding savegames
-typedef struct {
- byte type;
- uint64 mtime;
- char title[64];
- char name[256-12-64];
-} FiosItem;
-
-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_INVALID = 255,
-};
-
-
-// Variables to display file lists
-FiosItem *_fios_list;
-int _fios_num;
-int _saveload_mode;
-
-// get the name of an oldstyle savegame
-void GetOldSaveGameName(char *title, const char *path, const char *file);
-
-// Get a list of savegames
-FiosItem *FiosGetSavegameList(int *num, int mode);
-// Get a list of scenarios
-FiosItem *FiosGetScenarioList(int *num, int mode);
-// Free the list of savegames
-void FiosFreeSavegameList(void);
-// Browse to. Returns a filename w/path if we reached a file.
-char *FiosBrowseTo(const FiosItem *item);
-// Return path, free space and stringID
-StringID FiosGetDescText(const char **path, uint32 *tot);
-// Delete a name
-bool FiosDelete(const char *name);
-// Make a filename from a name
-void FiosMakeSavegameName(char *buf, const char *name, size_t size);
-// Allocate a new FiosItem
-FiosItem *FiosAlloc(void);
-
-int CDECL compare_FiosItems(const void *a, const void *b);
-
void CreateConsole(void);
#if defined(WIN32) || defined(WIN64) || defined(__WATCOMC__)