From 73640406ba98d81f8f2841c76e18d78a7a4f6377 Mon Sep 17 00:00:00 2001 From: Yimura Date: Sat, 26 Dec 2020 17:35:05 +0100 Subject: [PATCH] feat(Pointers): Added pointers and function declaration for Sync Local Time With Session --- BigBaseV2/src/function_types.hpp | 2 ++ BigBaseV2/src/pointers.cpp | 7 +++++++ BigBaseV2/src/pointers.hpp | 2 ++ 3 files changed, 11 insertions(+) diff --git a/BigBaseV2/src/function_types.hpp b/BigBaseV2/src/function_types.hpp index 05771398..f74b15ad 100644 --- a/BigBaseV2/src/function_types.hpp +++ b/BigBaseV2/src/function_types.hpp @@ -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); } diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index 292f1efd..b964a8c0 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -71,6 +71,13 @@ namespace big m_model_spawn_bypass = ptr.add(8).as(); }); + // 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(); + }); + main_batch.run(memory::module(nullptr)); m_hwnd = FindWindowW(L"grcWindow", nullptr); diff --git a/BigBaseV2/src/pointers.hpp b/BigBaseV2/src/pointers.hpp index f7f8e187..080a8d83 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -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{};