summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-07-13 18:43:48 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-07-13 18:43:48 +0200
commit81aece7117acb5acb26b21d714f6b8103e9b6668 (patch)
tree13690c5ba23112f1dab4eb9eb20152fc6c305d62
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
parentMerge remote-tracking branch 'origin/miami' into lcs (diff)
downloadre3-81aece7117acb5acb26b21d714f6b8103e9b6668.tar
re3-81aece7117acb5acb26b21d714f6b8103e9b6668.tar.gz
re3-81aece7117acb5acb26b21d714f6b8103e9b6668.tar.bz2
re3-81aece7117acb5acb26b21d714f6b8103e9b6668.tar.lz
re3-81aece7117acb5acb26b21d714f6b8103e9b6668.tar.xz
re3-81aece7117acb5acb26b21d714f6b8103e9b6668.tar.zst
re3-81aece7117acb5acb26b21d714f6b8103e9b6668.zip
-rw-r--r--premake5.lua13
-rw-r--r--src/core/config.h4
-rw-r--r--src/save/GenericGameStorage.cpp7
3 files changed, 18 insertions, 6 deletions
diff --git a/premake5.lua b/premake5.lua
index f8970b32..f6c31675 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -68,7 +68,7 @@ end
workspace "reLCS"
language "C++"
- configurations { "Debug", "Release", "Vanilla" }
+ configurations { "Debug", "Release" }
startproject "reLCS"
location "build"
symbols "Full"
@@ -86,7 +86,8 @@ workspace "reLCS"
linkoptions { "-fsanitize=address" }
end
- filter { "system:windows" }
+ filter { "system:windows" }
+ configurations { "Vanilla" }
platforms {
"win-x86-RW34_d3d8-mss",
"win-x86-librw_d3d9-mss",
@@ -130,9 +131,6 @@ workspace "reLCS"
flags { "LinkTimeOptimization" }
end
- filter "configurations:Vanilla"
- defines { "VANILLA_DEFINES" }
-
filter { "platforms:win*" }
system "windows"
@@ -324,7 +322,10 @@ project "reLCS"
includedirs { "vendor/ogg/include" }
includedirs { "vendor/opus/include" }
includedirs { "vendor/opusfile/include" }
- end
+ end
+
+ filter "configurations:Vanilla"
+ defines { "VANILLA_DEFINES" }
filter "platforms:*mss"
defines { "AUDIO_MSS" }
diff --git a/src/core/config.h b/src/core/config.h
index 877b37cc..23978e4f 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -211,6 +211,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