From 8cb51f276cf8c0e92d44ef9e2ad5cde9b9a53cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 25 Oct 2021 16:47:10 +0200 Subject: [PATCH] HLE: Fix hook flag for HBReload The reload stub is at a fixed address (0x80001800) so its hook flag should be HookFlag::Fixed. Otherwise the hook is installed by HLE::PatchFixedFunctions but immediately removed by HLE::PatchFunctions (which is called by HLE::Reload right after PatchFixedFunctions). Should fix https://bugs.dolphin-emu.org/issues/12716 --- Source/Core/Core/HLE/HLE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HLE/HLE.cpp b/Source/Core/Core/HLE/HLE.cpp index 6c65c445a7..6b5bad6a7e 100644 --- a/Source/Core/Core/HLE/HLE.cpp +++ b/Source/Core/Core/HLE/HLE.cpp @@ -31,7 +31,7 @@ constexpr std::array os_patches{{ {"FAKE_TO_SKIP_0", HLE_Misc::UnimplementedFunction, HookType::Replace, HookFlag::Generic}, // Name doesn't matter, installed in CBoot::BootUp() - {"HBReload", HLE_Misc::HBReload, HookType::Replace, HookFlag::Generic}, + {"HBReload", HLE_Misc::HBReload, HookType::Replace, HookFlag::Fixed}, // Debug/OS Support {"OSPanic", HLE_OS::HLE_OSPanic, HookType::Replace, HookFlag::Debug},