diff --git a/src/hooking/detour_hook.cpp b/src/hooking/detour_hook.cpp index f509d48f..e858be69 100644 --- a/src/hooking/detour_hook.cpp +++ b/src/hooking/detour_hook.cpp @@ -66,7 +66,7 @@ namespace big return; 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()