summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-06-13 14:13:23 +0000
committerfrosch <frosch@openttd.org>2010-06-13 14:13:23 +0000
commit8d9b573f8f7b6bd9e9f7df2a946d17a6f66082d9 (patch)
tree27c4c007629dcc0a6abaa3d8a33ffcdfa5d03132 /src/fios.h
parente8248cf1136cbb82f88807f68b53473aa8eb1682 (diff)
downloadopenttd-8d9b573f8f7b6bd9e9f7df2a946d17a6f66082d9.tar.xz
(svn r19975) -Add: SL_LOAD_CHECK mode for partial reading of savegames.
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/fios.h b/src/fios.h
index c4fe4f836..1a706b796 100644
--- a/src/fios.h
+++ b/src/fios.h
@@ -17,6 +17,26 @@
#include "core/enum_type.hpp"
#include "gfx_type.h"
+
+/**
+ * Container for loading in mode SL_LOAD_CHECK.
+ */
+struct LoadCheckData {
+ bool checkable; ///< True if the savegame could be checked by SL_LOAD_CHECK. (Old savegames are not checkable.)
+ StringID error; ///< Error message from loading. INVALID_STRING_ID if no error.
+ char *error_data; ///< Data to pass to SetDParamStr when displaying #error.
+
+ LoadCheckData() : error_data(NULL)
+ {
+ this->Clear();
+ }
+
+ void Clear();
+};
+
+extern LoadCheckData _load_check_data;
+
+
enum FileSlots {
/**
* Slot used for the GRF scanning and such. This slot cannot be reused