mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 03:43:07 +08:00
fix: fix CAN_REGISTER_MISSION_DOORS crash (#220)
This commit is contained in:
@@ -66,7 +66,7 @@ namespace big
|
||||
memory::byte_patch::make(g_pointers->m_gta.m_script_vm_patch_6.add(6).as<uint16_t*>(), 0x9090)->apply();
|
||||
|
||||
// Patch script network check
|
||||
memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked
|
||||
//memory::byte_patch::make(g_pointers->m_gta.m_model_spawn_bypass, std::vector{0x90, 0x90})->apply(); // this is no longer integrity checked
|
||||
|
||||
// Increase Start Get Presence Attributes limit from 32 to 100
|
||||
memory::byte_patch::make(g_pointers->m_sc.m_num_handles_patch, std::vector{0x64})->apply();
|
||||
|
||||
+5
-1
@@ -24,7 +24,11 @@ namespace big
|
||||
|
||||
void script_mgr::tick()
|
||||
{
|
||||
gta_util::execute_as_script("main_persistent"_J, std::mem_fn(&script_mgr::tick_internal), this);
|
||||
auto thread = gta_util::find_script_thread("freemode"_J);
|
||||
if (!thread)
|
||||
thread = gta_util::find_script_thread("main_persistent"_J);
|
||||
if (thread)
|
||||
gta_util::execute_as_script(thread, std::mem_fn(&script_mgr::tick_internal), this);
|
||||
}
|
||||
|
||||
void script_mgr::ensure_main_fiber()
|
||||
|
||||
Reference in New Issue
Block a user