mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-05-04 09:19:13 -05:00
Fix achievements button guide reappearing for Yes/No prompts (#193)
This commit is contained in:
@@ -135,7 +135,6 @@ PPC_FUNC(sub_824B0930)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: disable Start button closing menu.
|
||||
if (AchievementMenu::s_isVisible)
|
||||
{
|
||||
// HACK: wait for transition to finish before restoring control.
|
||||
@@ -154,7 +153,6 @@ PPC_FUNC(sub_824B0930)
|
||||
if (OptionsMenu::CanClose() && pInputState->GetPadState().IsTapped(SWA::eKeyState_B))
|
||||
{
|
||||
OptionsMenu::Close();
|
||||
|
||||
GuestToHostFunction<int>(sub_824AFD28, pHudPause, 0, 0, 0, 1);
|
||||
__imp__sub_824B0930(ctx, base);
|
||||
}
|
||||
@@ -165,7 +163,7 @@ PPC_FUNC(sub_824B0930)
|
||||
|
||||
const auto ms_IsRenderHud = (bool*)g_memory.Translate(0x8328BB26);
|
||||
|
||||
if (*ms_IsRenderHud && pHudPause->m_IsShown && pHudPause->m_Transition == SWA::eTransitionType_Undefined)
|
||||
if (*ms_IsRenderHud && pHudPause->m_IsShown && !pHudPause->m_Submenu && pHudPause->m_Transition == SWA::eTransitionType_Undefined)
|
||||
{
|
||||
ButtonGuide::Open(Button(Localise("Achievements_Name"), EButtonIcon::Back, EButtonAlignment::Left, EFontQuality::Low));
|
||||
g_isClosed = false;
|
||||
|
||||
Reference in New Issue
Block a user