From acdbb52583a962321c008a1bdb68cabcaf5df837 Mon Sep 17 00:00:00 2001 From: yamashi Date: Tue, 22 Mar 2022 15:51:59 +0100 Subject: [PATCH] Add 1.52 --- src/Image.cpp | 3 ++- src/Image.h | 2 +- src/scripting/LuaVM_Hooks.cpp | 2 -- vendor/RED4ext.SDK | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Image.cpp b/src/Image.cpp index d053798a..f4355295 100644 --- a/src/Image.cpp +++ b/src/Image.cpp @@ -33,7 +33,8 @@ void Image::Initialize() {{0x8E, 0x08, 0xA2, 0x5B, 0xC7, 0xDD, 0xD5, 0x48, 0xB4, 0xE9, 0x90, 0x38, 0x15, 0xB8, 0xBB, 0xEB}, MakeVersion(1, 31)}, {{0x5B, 0x6C, 0xAD, 0x70, 0x67, 0x2b, 0x54, 0x40, 0xBC, 0x45, 0x06, 0x60, 0x44, 0xA9, 0x12, 0x61}, MakeVersion(1, 50)}, {{0x73, 0x05, 0x22, 0x1B, 0x23, 0x65, 0x14, 0x4E, 0xB0, 0xE0, 0xAE, 0xC3, 0x4E, 0xD6, 0x4F, 0xBF}, MakeVersion(1, 5001)}, - {{0xDB, 0xE2, 0xBB, 0x94, 0x3B, 0x18, 0xB0, 0x4C, 0xAB, 0x56, 0xB6, 0xB8, 0x9A, 0x7E, 0xD2, 0xA5}, MakeVersion(1, 5002)} + {{0xDB, 0xE2, 0xBB, 0x94, 0x3B, 0x18, 0xB0, 0x4C, 0xAB, 0x56, 0xB6, 0xB8, 0x9A, 0x7E, 0xD2, 0xA5}, MakeVersion(1, 5002)}, + {{0xB0, 0x99, 0x3F, 0x8E, 0xB2, 0x57, 0x46, 0x41, 0xA3, 0x77, 0x3B, 0x98, 0x97, 0x15, 0xC4, 0xBB}, MakeVersion(1, 52)} }; mem::module mainModule = mem::module::main(); diff --git a/src/Image.h b/src/Image.h index 195c1241..215ef730 100644 --- a/src/Image.h +++ b/src/Image.h @@ -6,7 +6,7 @@ struct Image static std::tuple GetSupportedVersion() noexcept { - return std::make_tuple(1, 5002); + return std::make_tuple(1, 52); } static uint64_t MakeVersion(uint32_t aMajor, uint16_t aMinor) noexcept diff --git a/src/scripting/LuaVM_Hooks.cpp b/src/scripting/LuaVM_Hooks.cpp index f53d5981..e4b2154a 100644 --- a/src/scripting/LuaVM_Hooks.cpp +++ b/src/scripting/LuaVM_Hooks.cpp @@ -161,8 +161,6 @@ uint64_t LuaVM::HookTweakDBLoad(uintptr_t aThis, uintptr_t aParam) void LuaVM::Hook(Options& aOptions) { - auto& gameImage = aOptions.GameImage; - { RED4ext::RelocPtr func(CyberEngineTweaks::Addresses::CScript_Log); uint8_t* pLocation = func.GetAddr(); diff --git a/vendor/RED4ext.SDK b/vendor/RED4ext.SDK index b2939839..d04a987d 160000 --- a/vendor/RED4ext.SDK +++ b/vendor/RED4ext.SDK @@ -1 +1 @@ -Subproject commit b2939839f76e40c0e87e66350de1fb6529c0c2fe +Subproject commit d04a987d2f1d735408aa81e9a040770c75759833