diff --git a/BigBaseV2/src/function_types.hpp b/BigBaseV2/src/function_types.hpp index 53a7e958..61f6908e 100644 --- a/BigBaseV2/src/function_types.hpp +++ b/BigBaseV2/src/function_types.hpp @@ -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); } diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index 4e4ebfd5..65bf7998 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -83,6 +83,11 @@ namespace big m_get_player_name = ptr.as(); }); + 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(); + }); + 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 dd3a744d..c71f1542 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -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{}; };