feat(Pointers): Added pointers and function declaration for Sync Local Time With Session

This commit is contained in:
Yimura 2020-12-26 17:35:05 +01:00
parent 6afc080d50
commit 73640406ba
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78
3 changed files with 11 additions and 0 deletions

View File

@ -8,4 +8,6 @@ namespace big::functions
using run_script_threads_t = bool(*)(std::uint32_t ops_to_execute);
using get_native_handler_t = rage::scrNativeHandler(*)(rage::scrNativeRegistrationTable*, rage::scrNativeHash);
using fix_vectors_t = void(*)(rage::scrNativeCallContext*);
using sync_local_time_t = void(int h, int m);
}

View File

@ -71,6 +71,13 @@ namespace big
m_model_spawn_bypass = ptr.add(8).as<PVOID>();
});
// My new pointers
// Sync Local Time with Session
main_batch.add("Sync Local Time", "48 89 5C 24 ? 57 48 83 EC 20 8B F9 48 8B 0D ? ? ? ? 48 8B DA 33 D2", [this](memory::handle ptr)
{
m_sync_local_time = ptr.as<decltype(m_sync_local_time)>();
});
main_batch.run(memory::module(nullptr));
m_hwnd = FindWindowW(L"grcWindow", nullptr);

View File

@ -34,6 +34,8 @@ namespace big
IDXGISwapChain **m_swapchain{};
PVOID m_model_spawn_bypass;
functions::sync_local_time_t* m_sync_local_time{};
};
inline pointers *g_pointers{};