mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-23 17:12:35 +08:00
Add script patcher and update protections (#588)
This commit is contained in:
15
src/hooks/script/init_native_tables.cpp
Normal file
15
src/hooks/script/init_native_tables.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include "hooking.hpp"
|
||||
#include "services/script_patcher/script_patcher_service.hpp"
|
||||
#include "native_hooks/native_hooks.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
bool hooks::init_native_tables(rage::scrProgram* program)
|
||||
{
|
||||
bool ret = g_hooking->get_original<hooks::init_native_tables>()(program);
|
||||
g_script_patcher_service.on_script_load(program);
|
||||
g_native_hooks->hook_program(program);
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user