Update detour_hook.cpp

This commit is contained in:
Mr-X-GTA 2024-12-13 21:26:03 +01:00
parent 3a691b1e58
commit 0c9bf0edf3

View File

@ -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()