(svn r12961) -Codechange: store the type of savegame we are loading in a global variable

This commit is contained in:
smatz
2008-05-05 22:03:01 +00:00
parent 56e1178dca
commit c9cf1d4cee
3 changed files with 36 additions and 14 deletions

View File

@@ -28,6 +28,13 @@ enum SaveOrLoadMode {
SL_BMP = 4,
};
enum SavegameType {
SGT_TTD, ///< TTD savegame (can be detected incorrectly)
SGT_TTDP1, ///< TTDP savegame ( -//- ) (data at NW border)
SGT_TTDP2, ///< TTDP savegame in new format (data at SE border)
SGT_OTTD ///< OTTD savegame
};
void SetSaveLoadError(uint16 str);
const char *GetSaveLoadErrorString();
SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb);