summaryrefslogtreecommitdiff
path: root/src/fileio_type.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2016-09-04 12:56:23 +0000
committeralberth <alberth@openttd.org>2016-09-04 12:56:23 +0000
commit75ad6d01003ec807918b6dbad85f17ecf35f8bc5 (patch)
tree0c2014b6bbbe351b0df703ca2d64338d6b1062e1 /src/fileio_type.h
parent2d7201781bdf31fc1349ad465333e9d08bb39bfd (diff)
downloadopenttd-75ad6d01003ec807918b6dbad85f17ecf35f8bc5.tar.xz
(svn r27647) -Codechange: Introduce file operations, and use it to replace most of SaveLoadDialogMode
Diffstat (limited to 'src/fileio_type.h')
-rw-r--r--src/fileio_type.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fileio_type.h b/src/fileio_type.h
index 3aee5a0e7..20df8cd05 100644
--- a/src/fileio_type.h
+++ b/src/fileio_type.h
@@ -24,6 +24,12 @@ enum AbstractFileType {
FT_INVALID = 7, ///< Invalid or unknown file type.
};
+/** Operation performed on the file. */
+enum FileOperation {
+ FOP_LOAD, ///< File is being loaded.
+ FOP_SAVE, ///< File is being saved.
+};
+
/** Elements of a file system that are recognized. */
enum FiosType {
FIOS_TYPE_DRIVE,