Skip to content

Commit

Permalink
HLE: Fix hook flag for HBReload
Browse files Browse the repository at this point in the history
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
  • Loading branch information
leoetlino committed Oct 25, 2021
1 parent e4cc167 commit 8cb51f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/HLE/HLE.cpp
Expand Up @@ -31,7 +31,7 @@ constexpr std::array<Hook, 23> 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},
Expand Down

0 comments on commit 8cb51f2

Please sign in to comment.