summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2016-09-04 12:56:56 +0000
committeralberth <alberth@openttd.org>2016-09-04 12:56:56 +0000
commit88bdf482c0dc96661e3c8e89df44dcacea0199d7 (patch)
tree208483daee32fa031e628cbe44f42578576d3546 /src/fios.h
parent75ad6d01003ec807918b6dbad85f17ecf35f8bc5 (diff)
downloadopenttd-88bdf482c0dc96661e3c8e89df44dcacea0199d7.tar.xz
(svn r27648) -Codechange: Remove remaining _saveload_mode usage.
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/fios.h b/src/fios.h
index 1c61492af..86bcf3e3a 100644
--- a/src/fios.h
+++ b/src/fios.h
@@ -97,16 +97,6 @@ enum FileSlots {
MAX_FILE_SLOTS = 64
};
-/** Mode of the file dialogue window. */
-enum SaveLoadDialogMode {
- SLD_LOAD_GAME, ///< Load a game.
- SLD_LOAD_SCENARIO, ///< Load a scenario.
- SLD_SAVE_GAME, ///< Save a game.
- SLD_SAVE_SCENARIO, ///< Save a scenario.
- SLD_LOAD_HEIGHTMAP, ///< Load a heightmap.
- SLD_SAVE_HEIGHTMAP, ///< Save a heightmap.
-};
-
/** Deals with finding savegames */
struct FiosItem {
FiosType type;
@@ -215,10 +205,9 @@ enum SortingBits {
DECLARE_ENUM_AS_BIT_SET(SortingBits)
/* Variables to display file lists */
-extern SaveLoadDialogMode _saveload_mode;
extern SortingBits _savegame_sort_order;
-void ShowSaveLoadDialog(SaveLoadDialogMode mode);
+void ShowSaveLoadDialog(AbstractFileType abstract_filetype, FileOperation fop);
void FiosGetSavegameList(FileOperation fop, FileList &file_list);
void FiosGetScenarioList(FileOperation fop, FileList &file_list);