mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-16 06:18:05 +08:00
Update detour_hook.cpp
This commit is contained in:
parent
3a691b1e58
commit
0c9bf0edf3
@ -66,7 +66,7 @@ namespace big
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (auto status = MH_QueueEnableHook(m_target); status != MH_OK)
|
if (auto status = MH_QueueEnableHook(m_target); status != MH_OK)
|
||||||
throw std::runtime_error(std::format("Failed to enable hook 0x{:X} ({})", uintptr_t(m_target), MH_StatusToString(status)));
|
LOGF(FATAL, "Failed to enable hook 0x{:X} ({})", uintptr_t(m_target), MH_StatusToString(status));
|
||||||
}
|
}
|
||||||
|
|
||||||
void detour_hook::disable()
|
void detour_hook::disable()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user