From 26317656dc312121837051050a3a2d22ca7a891c Mon Sep 17 00:00:00 2001 From: Yimura Date: Tue, 25 Jan 2022 02:52:04 +0100 Subject: [PATCH] fix(NativeHooks): Network Bail replaced with function that does nothing --- BigBaseV2/src/native_hooks/freemode.hpp | 7 ++----- BigBaseV2/src/native_hooks/native_hooks.hpp | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/BigBaseV2/src/native_hooks/freemode.hpp b/BigBaseV2/src/native_hooks/freemode.hpp index 89810cb4..5600c6b2 100644 --- a/BigBaseV2/src/native_hooks/freemode.hpp +++ b/BigBaseV2/src/native_hooks/freemode.hpp @@ -4,12 +4,9 @@ namespace big { namespace freemode { - inline void NETWORK_CAN_BAIL(rage::scrNativeCallContext* src) + inline void NETWORK_BAIL(rage::scrNativeCallContext* src) { - LOG(INFO) << "NATIVE_HOOK => NETWORK_CAN_BAIL : TRIGGERED"; - - src->set_return_value(false); + LOG(INFO) << "NETWORK_BAIL prevented"; } } - } \ No newline at end of file diff --git a/BigBaseV2/src/native_hooks/native_hooks.hpp b/BigBaseV2/src/native_hooks/native_hooks.hpp index 2c89b540..41dad526 100644 --- a/BigBaseV2/src/native_hooks/native_hooks.hpp +++ b/BigBaseV2/src/native_hooks/native_hooks.hpp @@ -24,7 +24,7 @@ namespace big { this->add_native_detour(RAGE_JOAAT("carmod_shop"), 0x06843DA7060A026B, carmod_shop::SET_ENTITY_COORDS); this->add_native_detour(RAGE_JOAAT("carmod_shop"), 0x8E2530AA8ADA980E, carmod_shop::SET_ENTITY_HEADING); - this->add_native_detour(RAGE_JOAAT("freemode"), 0x580CE4438479CC61, freemode::NETWORK_CAN_BAIL); + this->add_native_detour(RAGE_JOAAT("freemode"), 0x95914459A87EBA28, freemode::NETWORK_BAIL); for (auto native_detours_for_script : m_native_registrations) if (GtaThread* thread = gta_util::find_script_thread(native_detours_for_script.first); thread != nullptr && thread->m_context.m_state == rage::eThreadState::running)