feat(Pointers): Added screen resolution x/y

This commit is contained in:
Yimura 2022-03-17 12:08:03 +01:00
parent 6a34e61aee
commit 4ed4ce0ee3
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
2 changed files with 9 additions and 0 deletions

View File

@ -248,6 +248,12 @@ namespace big
{
m_net_array_handler = ptr.sub(0x3C).as<PVOID>();
});
main_batch.add("SCREEN_RESOLUTION", "66 0F 6E 0D ? ? ? ? 0F B7 3D", [this](memory::handle ptr)
{
m_resolution_x = ptr.sub(4).rip().as<int*>();
m_resolution_y = ptr.add(4).rip().as<int*>();
});
main_batch.run(memory::module(nullptr));

View File

@ -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;