From 4ed4ce0ee393d6d6a4623628db689e0bb2dc0e61 Mon Sep 17 00:00:00 2001 From: Yimura Date: Thu, 17 Mar 2022 12:08:03 +0100 Subject: [PATCH] feat(Pointers): Added screen resolution x/y --- BigBaseV2/src/pointers.cpp | 6 ++++++ BigBaseV2/src/pointers.hpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index db5a27ed..4fe2f465 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -248,6 +248,12 @@ namespace big { m_net_array_handler = ptr.sub(0x3C).as(); }); + + main_batch.add("SCREEN_RESOLUTION", "66 0F 6E 0D ? ? ? ? 0F B7 3D", [this](memory::handle ptr) + { + m_resolution_x = ptr.sub(4).rip().as(); + m_resolution_y = ptr.add(4).rip().as(); + }); main_batch.run(memory::module(nullptr)); diff --git a/BigBaseV2/src/pointers.hpp b/BigBaseV2/src/pointers.hpp index 0dc1931f..ac1b138d 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -41,6 +41,9 @@ namespace big IDXGISwapChain **m_swapchain{}; + int* m_resolution_x; + int* m_resolution_y; + PVOID m_blame_explode; PVOID m_model_spawn_bypass; PVOID m_native_return;