From feb5930b0ca4c6f7e0783f932c029828662dd4da Mon Sep 17 00:00:00 2001 From: ianpatt Date: Wed, 22 Nov 2023 19:01:19 -0800 Subject: [PATCH] update SFSE plugin version compatibility definition for 1.8.86 struct break --- CommonLibSF/include/SFSE/Interfaces.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CommonLibSF/include/SFSE/Interfaces.h b/CommonLibSF/include/SFSE/Interfaces.h index a88aaf06..f4b1d32b 100644 --- a/CommonLibSF/include/SFSE/Interfaces.h +++ b/CommonLibSF/include/SFSE/Interfaces.h @@ -187,11 +187,13 @@ namespace SFSE constexpr void UsesSigScanning(const bool a_value) noexcept { SetOrClearBit(addressIndependence, 1 << 0, a_value); } + // 1 << 1 is for address library v1 constexpr void UsesAddressLibrary(const bool a_value) noexcept { SetOrClearBit(addressIndependence, 1 << 1, a_value); } constexpr void HasNoStructUse(const bool a_value) noexcept { SetOrClearBit(structureCompatibility, 1 << 0, a_value); } - constexpr void IsLayoutDependent(const bool a_value) noexcept { SetOrClearBit(structureCompatibility, 1 << 1, a_value); } + // 1 << 2 is for runtime 1.8.86 and later + constexpr void IsLayoutDependent(const bool a_value) noexcept { SetOrClearBit(structureCompatibility, 1 << 2, a_value); } constexpr void CompatibleVersions(std::initializer_list a_versions) noexcept {