mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
feat(Pointers): Added pointer for future Disable Error Screen hook
This commit is contained in:
parent
69f1a5ddea
commit
e4c0718cde
@ -9,6 +9,7 @@ namespace big::functions
|
||||
using get_native_handler_t = rage::scrNativeHandler(*)(rage::scrNativeRegistrationTable*, rage::scrNativeHash);
|
||||
using fix_vectors_t = void(*)(rage::scrNativeCallContext*);
|
||||
|
||||
using disable_error_screen = void(char* entryHeader, char* entryLine1, int instructionalKey, char* entryLine2, BOOL p4, Any p5, Any* p6, Any* p7, BOOL background);
|
||||
using get_player_name = char*(Player player);
|
||||
using sync_local_time_t = void(int h, int m);
|
||||
}
|
||||
|
@ -83,6 +83,11 @@ namespace big
|
||||
m_get_player_name = ptr.as<decltype(m_get_player_name)>();
|
||||
});
|
||||
|
||||
main_batch.add("Disable Error Screen", "48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 41 56 41 57 48 83 EC 60 4C 8B F2 48 8B 94 24 ? ? ? ? 33 DB", [this](memory::handle ptr)
|
||||
{
|
||||
m_disable_error_screen = ptr.as<decltype(m_disable_error_screen)>();
|
||||
});
|
||||
|
||||
main_batch.run(memory::module(nullptr));
|
||||
|
||||
m_hwnd = FindWindowW(L"grcWindow", nullptr);
|
||||
|
@ -35,6 +35,7 @@ namespace big
|
||||
|
||||
PVOID m_model_spawn_bypass;
|
||||
|
||||
functions::disable_error_screen* m_disable_error_screen;
|
||||
functions::get_player_name* m_get_player_name{};
|
||||
functions::sync_local_time_t* m_sync_local_time{};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user