(svn r19975) -Add: SL_LOAD_CHECK mode for partial reading of savegames.

This commit is contained in:
frosch
2010-06-13 14:13:23 +00:00
parent 3d38176cd5
commit ec903570f1
4 changed files with 198 additions and 62 deletions

View File

@@ -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