fix(ErrorScreen): Fix arguments and simplified pointer decl

This commit is contained in:
Yimura
2021-12-22 01:13:10 +01:00
parent f1ae8aa022
commit 359567afd0
5 changed files with 34 additions and 10 deletions

View File

@ -4,20 +4,34 @@
namespace big
{
void hooks::disable_error_screen(
void hooks::set_warning_message_with_header_and_substring_flags(
char* entryHeader,
char* entryLine1,
int instructionalKey,
char* entryLine2,
BOOL p4,
Any p5,
Any* p6,
Any* p7,
BOOL background
Any* additionalIntInfo,
const char* additionalTextInfoLine1,
const char* additionalTextInfoLine2,
BOOL background,
int errorCode
)
{
if (SCRIPT::GET_HASH_OF_THIS_SCRIPT_NAME() == RAGE_JOAAT("shop_controller")) return;
return g_hooking->m_error_screen_hook.get_original<decltype(&hooks::disable_error_screen)>()(entryHeader, entryLine1, instructionalKey, entryLine2, p4, p5, p6, p7, background);
return g_hooking->m_error_screen_hook.get_original<decltype(&hooks::set_warning_message_with_header_and_substring_flags)>()(
entryHeader,
entryLine1,
instructionalKey,
entryLine2,
p4,
p5,
additionalIntInfo,
additionalTextInfoLine1,
additionalTextInfoLine2,
background,
errorCode
);
}
}