summaryrefslogtreecommitdiff
path: root/src/fios_gui.cpp
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_gui.cpp
parente8248cf1136cbb82f88807f68b53473aa8eb1682 (diff)
downloadopenttd-8d9b573f8f7b6bd9e9f7df2a946d17a6f66082d9.tar.xz
(svn r19975) -Add: SL_LOAD_CHECK mode for partial reading of savegames.
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r--src/fios_gui.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp
index 527f3eddd..22c2c0119 100644
--- a/src/fios_gui.cpp
+++ b/src/fios_gui.cpp
@@ -29,11 +29,24 @@
#include "table/strings.h"
SaveLoadDialogMode _saveload_mode;
+LoadCheckData _load_check_data; ///< Data loaded from save during SL_LOAD_CHECK.
static bool _fios_path_changed;
static bool _savegame_sort_dirty;
+/**
+ * Reset read data.
+ */
+void LoadCheckData::Clear()
+{
+ this->checkable = false;
+ this->error = INVALID_STRING_ID;
+ free(this->error_data);
+ this->error_data = NULL;
+}
+
+
enum SaveLoadWindowWidgets {
SLWW_WINDOWTITLE,
SLWW_SORT_BYNAME,