feat(Pointers): Set SCREEN_RESOLUTION signature early

This commit is contained in:
Yimura 2022-03-31 00:21:05 +02:00
parent ee6e5e500c
commit 169f09cdaf
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -8,6 +8,12 @@ namespace big
{
memory::pattern_batch main_batch;
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*>();
});
// Game State
main_batch.add("GS", "83 3D ? ? ? ? ? 75 17 8B 43 20 25", [this](memory::handle ptr)
{
@ -248,12 +254,6 @@ 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));