From bce48acb36795e22d0eb6cadbade5f219abf7691 Mon Sep 17 00:00:00 2001 From: Yimura Date: Sat, 24 Jul 2021 14:47:36 +0200 Subject: [PATCH] feat(DefuseEvent): Removed DefuseEvent as it trips REPORT_MYSELF --- BigBaseV2/src/gta_util.hpp | 17 ----------------- BigBaseV2/src/gui.cpp | 3 --- 2 files changed, 20 deletions(-) diff --git a/BigBaseV2/src/gta_util.hpp b/BigBaseV2/src/gta_util.hpp index b884e437..0d00d408 100644 --- a/BigBaseV2/src/gta_util.hpp +++ b/BigBaseV2/src/gta_util.hpp @@ -9,23 +9,6 @@ namespace big::gta_util { - inline void defuse_event(RockstarEvent e, bool toggle) - { - int event_index = (int)e; - - if (g_pointers->m_event_ptr[event_index] == nullptr) return; - - char* p = (char*)g_pointers->m_event_ptr[event_index]; - if (toggle) - { - if (g_pointers->m_event_restore[event_index] == 0) - g_pointers->m_event_restore[event_index] = p[0]; - *p = (unsigned char)0xC3; - } - else if (g_pointers->m_event_restore[event_index] != 0) - *p = g_pointers->m_event_restore[event_index]; - } - inline CPed *get_local_ped() { if (auto ped_factory = *g_pointers->m_ped_factory) diff --git a/BigBaseV2/src/gui.cpp b/BigBaseV2/src/gui.cpp index 2c49d7a8..b55c7931 100644 --- a/BigBaseV2/src/gui.cpp +++ b/BigBaseV2/src/gui.cpp @@ -112,9 +112,6 @@ namespace big void gui::script_init() { - gta_util::defuse_event(RockstarEvent::REPORT_CASH_SPAWN_EVENT, true); - gta_util::defuse_event(RockstarEvent::REPORT_MYSELF_EVENT, true); - notify::display_help_text("Press INSERT on your keyboard to open Yim's Mod Menu."); }