summaryrefslogtreecommitdiffstats
path: root/src/save/PCSave.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-07 17:34:02 +0200
committerwithmorten <morten.with@gmail.com>2021-07-10 02:06:43 +0200
commit6f103a3b8246ed4a883abaea63c6682cdefc6752 (patch)
tree0a647e32813ec2990b3b3ecc647acfc8bb26c8dc /src/save/PCSave.cpp
parentUse CPad functions to check key states in script loader (diff)
downloadre3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.gz
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.bz2
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.lz
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.xz
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.tar.zst
re3-6f103a3b8246ed4a883abaea63c6682cdefc6752.zip
Diffstat (limited to 'src/save/PCSave.cpp')
-rw-r--r--src/save/PCSave.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp
index c9045705..a33e9d90 100644
--- a/src/save/PCSave.cpp
+++ b/src/save/PCSave.cpp
@@ -122,6 +122,13 @@ C_PcSave::PopulateSlotInfo()
}
if (Slots[i] == SLOT_OK) {
if (CheckDataNotCorrupt(i, savename)) {
+#ifdef FIX_INCOMPATIBLE_SAVES
+ if (!FixSave(i, GetSaveType(savename))) {
+ CMessages::InsertNumberInString(TheText.Get("FEC_SLC"), i + 1, -1, -1, -1, -1, -1, SlotFileName[i]);
+ Slots[i] = SLOT_CORRUPTED;
+ continue;
+ }
+#endif
SYSTEMTIME st;
memcpy(&st, &header.SaveDateTime, sizeof(SYSTEMTIME));
const char *month;