From a9c1c9b4e436c698a9fc3156eaeec62ad0d45848 Mon Sep 17 00:00:00 2001 From: Isaac <62234577+Isaac0-dev@users.noreply.github.com> Date: Thu, 31 Mar 2022 14:45:37 +1000 Subject: [PATCH] Credits skip (#50) Press the start button to skip the credits. Works during ACT_END_PEACH_CUTSCENE and ACT_CREDITS_CUTSCENE. --- src/game/mario.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/mario.c b/src/game/mario.c index fb4b2c389..f37702a64 100644 --- a/src/game/mario.c +++ b/src/game/mario.c @@ -1529,6 +1529,12 @@ void update_mario_inputs(struct MarioState *m) { #endif /* End of developer stuff */ + if ((m->action == ACT_END_PEACH_CUTSCENE || m->action == ACT_CREDITS_CUTSCENE) && m->controller->buttonPressed & START_BUTTON) { + gCurrActStarNum = 0; + gCurrActNum = 0; + gChangeLevel = 16; + } + if (m->playerIndex == 0) { if (!localIsPaused && gCameraMovementFlags & CAM_MOVE_C_UP_MODE) { if (m->action & ACT_FLAG_ALLOW_FIRST_PERSON) {