Skip to content

Commit bfebb2e

Browse files
authored
Fix main menu chevron animation not restarting upon re-entry (#158)
1 parent d54179e commit bfebb2e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

MarathonRecomp/api/Sonicteam/MainMenuTask.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ namespace Sonicteam
2828
MainMenuState_AudioRoom = 0x2F,
2929
MainMenuState_TheaterRoom = 0x31,
3030
MainMenuState_Options = 0x33,
31-
MainMenuState_MainMenuExit = 0x3C
31+
MainMenuState_MainMenuExitToStage = 0x3B,
32+
MainMenuState_MainMenuExitToTitle = 0x3C
3233
};
3334

3435
be<uint32_t> m_State;

MarathonRecomp/patches/aspect_ratio_patches.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,16 @@ void SetTextEntityModifier(Sonicteam::TextEntity* pTextEntity, uint64_t flags)
16341634
pTextEntity->Update();
16351635
}
16361636

1637+
// Sonicteam::HUDMainMenu::Destroy
1638+
PPC_FUNC_IMPL(__imp__sub_824E2978);
1639+
PPC_FUNC(sub_824E2978)
1640+
{
1641+
g_bgArrows.clear();
1642+
g_fgArrows.clear();
1643+
1644+
__imp__sub_824E2978(ctx, base);
1645+
}
1646+
16371647
// Sonicteam::HUDMainMenu::Update
16381648
PPC_FUNC_IMPL(__imp__sub_824E11D0);
16391649
PPC_FUNC(sub_824E11D0)

0 commit comments

Comments
 (0)