From 19a6562ab77950000e071192d7575948e7969c0e Mon Sep 17 00:00:00 2001 From: Rose <83477269+AreaZR@users.noreply.github.com> Date: Sat, 12 Oct 2024 00:41:14 -0400 Subject: [PATCH] Add CRY_AT_START so Rayquaza's voice plays when the player gets past the title screen From Platinum onwards (until the Switch era), pressing start would play the legendary cry. This adds that basically. --- include/config/general.h | 1 + src/title_screen.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/config/general.h b/include/config/general.h index cff1432bb7..782e8b8415 100644 --- a/include/config/general.h +++ b/include/config/general.h @@ -73,6 +73,7 @@ #define HQ_RANDOM TRUE // If TRUE, replaces the default RNG with an implementation of SFC32 RNG. May break code that relies on RNG. #define COMPETITIVE_PARTY_SYNTAX TRUE // If TRUE, parties are defined in "competitive syntax". #define AUTO_SCROLL_TEXT FALSE // If TRUE, text will automatically scroll to the next line after NUM_FRAMES_AUTO_SCROLL_DELAY. Players can still press A_BUTTON or B_BUTTON to scroll on their own. +#define CRY_AT_START TRUE // If TRUE, Rayquaza's cry plays when A or Start is pressed at the title screen. #define NUM_FRAMES_AUTO_SCROLL_DELAY 49 diff --git a/src/title_screen.c b/src/title_screen.c index 1d605d1fc0..9e331cc677 100644 --- a/src/title_screen.c +++ b/src/title_screen.c @@ -782,6 +782,8 @@ static void Task_TitleScreenPhase3(u8 taskId) if (JOY_NEW(A_BUTTON) || JOY_NEW(START_BUTTON)) { FadeOutBGM(4); + if (CRY_AT_START) + PlayCry_Normal(SPECIES_RAYQUAZA, 0); BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_WHITEALPHA); SetMainCallback2(CB2_GoToMainMenu); }