summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-12 23:36:37 +0200
committerwithmorten <morten.with@gmail.com>2021-07-12 23:36:37 +0200
commit6f0f9d7d695056575120ff49cc01297419c0d0e4 (patch)
tree44fec3bc4e383d0139432efc66d81acf97559e16 /src
parentMerge branch 'miami' into lcs (diff)
parentfix premake (diff)
downloadre3-6f0f9d7d695056575120ff49cc01297419c0d0e4.tar
re3-6f0f9d7d695056575120ff49cc01297419c0d0e4.tar.gz
re3-6f0f9d7d695056575120ff49cc01297419c0d0e4.tar.bz2
re3-6f0f9d7d695056575120ff49cc01297419c0d0e4.tar.lz
re3-6f0f9d7d695056575120ff49cc01297419c0d0e4.tar.xz
re3-6f0f9d7d695056575120ff49cc01297419c0d0e4.tar.zst
re3-6f0f9d7d695056575120ff49cc01297419c0d0e4.zip
Diffstat (limited to '')
-rw-r--r--src/core/config.h4
-rw-r--r--src/save/GenericGameStorage.cpp7
2 files changed, 11 insertions, 0 deletions
diff --git a/src/core/config.h b/src/core/config.h
index c8fca082..4eda549b 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -209,6 +209,10 @@ enum Config {
#define DEFAULT_NATIVE_RESOLUTION // Set default video mode to your native resolution (fixes Windows 10 launch)
#ifdef VANILLA_DEFINES
+#if !defined(_WIN32) || defined(__LP64__) || defined(_WIN64)
+#error Vanilla can only be built for win-x86
+#endif
+
#define FINAL
#define MASTER
//#define USE_MY_DOCUMENTS
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp
index dbd12cc6..412a0c94 100644
--- a/src/save/GenericGameStorage.cpp
+++ b/src/save/GenericGameStorage.cpp
@@ -828,6 +828,13 @@ FixGarages(uint8 save_type, uint8 *buf, uint8 *buf2, uint32 *size)
SkipBuf(buf2, sizeof(CStoredCar));
}
+
+ *size = 0;
+
+ assert(buf - buf_start == read);
+ assert(buf2 - buf2_start == written);
+
+ *size = 7876;
}
static void