free replacefunc hooks

This commit is contained in:
quaK 2024-07-22 14:04:14 +03:00
parent 694d3fd181
commit 20345a7747

View File

@ -311,6 +311,14 @@ namespace gsc
utils::hook::jump(0x140C0D0A4, utils::hook::assemble(vm_execute_stub), true); utils::hook::jump(0x140C0D0A4, utils::hook::assemble(vm_execute_stub), true);
scripting::on_shutdown([](bool free_scripts, bool post_shutdown)
{
if (free_scripts && post_shutdown)
{
vm_execute_hooks.clear();
}
});
function::add("print", [](const function_args& args) function::add("print", [](const function_args& args)
{ {
print(args); print(args);