mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-10 03:08:57 +08:00
fix(NativeHooks): Network Bail replaced with function that does nothing
This commit is contained in:
parent
d1b11f7d3c
commit
26317656dc
@ -4,12 +4,9 @@ namespace big
|
|||||||
{
|
{
|
||||||
namespace freemode
|
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";
|
LOG(INFO) << "NETWORK_BAIL prevented";
|
||||||
|
|
||||||
src->set_return_value<BOOL>(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -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"), 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("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)
|
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)
|
if (GtaThread* thread = gta_util::find_script_thread(native_detours_for_script.first); thread != nullptr && thread->m_context.m_state == rage::eThreadState::running)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user