mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-10 11:53:07 +08:00
refactor: make window hook into a bool command (#1824)
This commit is contained in:
@@ -78,9 +78,6 @@ namespace big
|
||||
memory::byte_patch::make(g_pointers->m_sc.m_read_attribute_patch, std::vector{0x90, 0x90})->apply();
|
||||
memory::byte_patch::make(g_pointers->m_sc.m_read_attribute_patch_2, std::vector{0xB0, 0x01})->apply();
|
||||
|
||||
// window hook: pt1
|
||||
memory::byte_patch::make(g_pointers->m_gta.m_window_hook.as<void*>(), std::to_array({0xC3, 0x90, 0x90, 0x90}))->apply();
|
||||
|
||||
// Prevent the game from crashing when flooded with outgoing events
|
||||
memory::byte_patch::make(g_pointers->m_gta.m_free_event_error, std::vector{0x90, 0x90, 0x90, 0x90, 0x90})->apply();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user