From f8e84918ab1c66eac9391b4199a89b294a440b30 Mon Sep 17 00:00:00 2001 From: Ruben Tytgat Date: Mon, 11 Nov 2024 01:36:59 +0100 Subject: [PATCH] miller v1.1.0.1 --- CHANGELOG.md | 5 +++++ CMakeLists.txt | 2 +- src/ui/Context.cpp | 10 +++++----- src/ui/input/miller/Input.cpp | 6 +++--- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e22c1b..c81d611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# v0.1.54 +## Shadow Generations +* Update for Shadow Generations v1.1.0.1. + + # v0.1.53 ## Shadow Generations * Ported "teleport player". diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d46881..8415725 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.28) # DevTools -project(devtools VERSION 0.1.53 +project(devtools VERSION 0.1.54 DESCRIPTION "Hedgehog Engine 2 DevTools" LANGUAGES CXX) diff --git a/src/ui/Context.cpp b/src/ui/Context.cpp index 3dad940..500f90b 100644 --- a/src/ui/Context.cpp +++ b/src/ui/Context.cpp @@ -42,11 +42,11 @@ constexpr size_t displaySwapDeviceResizeBuffersAddr = 0x1410FB090; constexpr size_t displaySwapDevicePresentAddr = 0x1410FAEE0; #endif #ifdef DEVTOOLS_TARGET_SDK_miller -constexpr size_t appResetAddr = 0x1467BAE20; -constexpr size_t appShutdownAddr = 0x1522F3600; -constexpr size_t wndProcAddr = 0x140A27340; -constexpr size_t displaySwapDeviceResizeBuffersAddr = 0x140ED9E00; -constexpr size_t displaySwapDevicePresentAddr = 0x140ED9C30; +constexpr size_t appResetAddr = 0x14006E410; +constexpr size_t appShutdownAddr = 0x14FFD9BA0; +constexpr size_t wndProcAddr = 0x140A27610; +constexpr size_t displaySwapDeviceResizeBuffersAddr = 0x140EDA0D0; +constexpr size_t displaySwapDevicePresentAddr = 0x140ED9F00; #endif HOOK(uint64_t, __fastcall, GameApplication_Reset, appResetAddr, hh::game::GameApplication* self) { diff --git a/src/ui/input/miller/Input.cpp b/src/ui/input/miller/Input.cpp index 6cb4d69..1bff304 100644 --- a/src/ui/input/miller/Input.cpp +++ b/src/ui/input/miller/Input.cpp @@ -1,13 +1,13 @@ #include -HOOK(void, __fastcall, KeyboardUpdate, 0x140C1C390, hh::hid::Keyboard* self, float unkParam) +HOOK(void, __fastcall, KeyboardUpdate, 0x140C1C660, hh::hid::Keyboard* self, float unkParam) { if (!ShouldCaptureKeyboardInputs()) { originalKeyboardUpdate(self, unkParam); } } -HOOK(void, __fastcall, MouseUpdate, 0x140C0BAD0, hh::hid::MouseWin32* self, float unkParam) +HOOK(void, __fastcall, MouseUpdate, 0x140C0BDA0, hh::hid::MouseWin32* self, float unkParam) { static bool capturing{}; if (ShouldCaptureMouseInputs()) { @@ -39,7 +39,7 @@ HOOK(void, __fastcall, MouseUpdate, 0x140C0BAD0, hh::hid::MouseWin32* self, floa // return originalPointingGetTarget(self, resstr, inputId); //} -HOOK(void, __fastcall, BindMaps, 0x140A08700, hh::game::GameManager* gameManager, hh::hid::InputMapSettings* inputSettings) { +HOOK(void, __fastcall, BindMaps, 0x140A089D0, hh::game::GameManager* gameManager, hh::hid::InputMapSettings* inputSettings) { AddDevToolsInputBindings(inputSettings); originalBindMaps(gameManager, inputSettings); }