From 85b5ebf9a7abad3f985a9c770da4254a22194641 Mon Sep 17 00:00:00 2001 From: "Skyth (Asilkan)" <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Wed, 22 Jan 2025 19:13:53 +0300 Subject: [PATCH] Fix pause menu selection cast being visible while exiting options menu. (#139) --- UnleashedRecomp/patches/ui/CHudPause_patches.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UnleashedRecomp/patches/ui/CHudPause_patches.cpp b/UnleashedRecomp/patches/ui/CHudPause_patches.cpp index 887c1c8..b660ddd 100644 --- a/UnleashedRecomp/patches/ui/CHudPause_patches.cpp +++ b/UnleashedRecomp/patches/ui/CHudPause_patches.cpp @@ -68,6 +68,9 @@ bool InjectMenuBehaviour(uint32_t pThis, uint32_t count) pHudPause->m_Action = SWA::eActionType_Undefined; pHudPause->m_Transition = SWA::eTransitionType_Hide; + if (pHudPause->m_rcBg1Select) + pHudPause->m_rcBg1Select->SetHideFlag(true); + return true; } else if (cursorIndex == count - 1) @@ -153,6 +156,7 @@ PPC_FUNC(sub_824B0930) OptionsMenu::Close(); GuestToHostFunction(sub_824AFD28, pHudPause, 0, 0, 0, 1); + __imp__sub_824B0930(ctx, base); } } else