
* fix(Respawn): fix respawn in SP * fix: re-enable bigobj * fix: update creator's stack size * fix: use BOOLs instead of bools * fix(gitignore): hide .pyc files
19 lines
512 B
C++
19 lines
512 B
C++
#include "hooking/hooking.hpp"
|
|
#include "native_hooks/native_hooks.hpp"
|
|
#include "services/script_patcher/script_patcher_service.hpp"
|
|
|
|
namespace big
|
|
{
|
|
bool hooks::init_native_tables(rage::scrProgram* program)
|
|
{
|
|
bool ret = g_hooking->get_original<hooks::init_native_tables>()(program);
|
|
|
|
if (program->m_code_size && program->m_code_blocks) // ensure that we aren't hooking SHV threads
|
|
{
|
|
g_script_patcher_service->on_script_load(program);
|
|
g_native_hooks->hook_program(program);
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
} |