2021-05-20 15:49:36 +02:00
|
|
|
#include "gta/joaat.hpp"
|
|
|
|
#include "hooking.hpp"
|
|
|
|
#include "natives.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
2021-12-22 01:13:10 +01:00
|
|
|
void hooks::set_warning_message_with_header_and_substring_flags(
|
2021-05-20 15:49:36 +02:00
|
|
|
char* entryHeader,
|
|
|
|
char* entryLine1,
|
|
|
|
int instructionalKey,
|
|
|
|
char* entryLine2,
|
|
|
|
BOOL p4,
|
|
|
|
Any p5,
|
2021-12-22 01:13:10 +01:00
|
|
|
Any* additionalIntInfo,
|
|
|
|
const char* additionalTextInfoLine1,
|
|
|
|
const char* additionalTextInfoLine2,
|
|
|
|
BOOL background,
|
|
|
|
int errorCode
|
2021-05-20 15:49:36 +02:00
|
|
|
)
|
|
|
|
{
|
2021-07-24 15:00:23 +02:00
|
|
|
if (SCRIPT::GET_HASH_OF_THIS_SCRIPT_NAME() == RAGE_JOAAT("shop_controller")) return;
|
|
|
|
|
2021-12-22 01:13:10 +01:00
|
|
|
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
|
|
|
|
);
|
2021-05-20 15:49:36 +02:00
|
|
|
}
|
|
|
|
}
|