diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -54,6 +54,9 @@ void LoadCheckData::Clear() this->map_size_x = this->map_size_y = 256; // Default for old savegames which do not store mapsize. this->current_date = 0; + this->save_version = SL_MIN_VERSION; + this->save_ext_type = PSXT_NONE; + this->save_version_label = ""; this->settings = {}; for (auto &pair : this->companies) { @@ -471,6 +474,19 @@ public: uint y_max = r.bottom - FONT_HEIGHT_NORMAL - WD_FRAMERECT_BOTTOM; if (y > y_max) break; + if (_load_check_data.checkable) { + SetDParam(0, _load_check_data.save_version); + SetDParamStr(1, _load_check_data.save_ext_type == PSXT_EXTENDED ? "X" : _load_check_data.save_ext_type == PSXT_MODIFIED ? "M" : ""); + DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_SAVELOAD_VERSION_WITH_EXTENSION); + y += FONT_HEIGHT_NORMAL; + if (_load_check_data.save_version_label.length() > 0) + { + SetDParamStr(0, _load_check_data.save_version_label.c_str()); + DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_SAVELOAD_VERSION_LABEL); + y += FONT_HEIGHT_NORMAL; + } + y += FONT_HEIGHT_NORMAL; + } if (!_load_check_data.checkable) { /* Old savegame, no information available */ DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_SAVELOAD_DETAIL_NOT_AVAILABLE);