refactor: make window hook into a bool command (#1824)

This commit is contained in:
Andreas Maerten
2023-07-23 22:52:30 +02:00
committed by GitHub
parent 181a34baa0
commit 069d7041f8
5 changed files with 39 additions and 8 deletions
-3
View File
@@ -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();
}