Refresh 12
This commit is contained in:
1 parent
9214dddabc
commit
8b872a71e8
137 files changed
+2102
-1582
No files matched your search
@@ -42,7 +42,7 @@ static s16 sSoundTextX;
|
||||
static s16 sSoundTextY;
|
||||
#endif
|
||||
|
||||
//! @Bug (UB Array Access) For PAL, more buttons were added than the array was extended.
|
||||
//! @Bug (UB Array Access) For EU, more buttons were added than the array was extended.
|
||||
//! This causes no currently known issues on console (as the other variables are not changed
|
||||
//! while this is used) but can cause issues with other compilers.
|
||||
#ifdef VERSION_EU
|
||||
@@ -118,7 +118,7 @@ static s16 sMainMenuTimer = 0;
|
||||
// 0: gSoundMode = 0 (Stereo) | 1: gSoundMode = 3 (Mono) | 2: gSoundMode = 1 (Headset)
|
||||
static s8 sSoundMode = 0;
|
||||
|
||||
// Active language for PAL arrays, values defined similar to sSoundMode
|
||||
// Active language for EU arrays, values defined similar to sSoundMode
|
||||
// 0: English | 1: French | 2: German
|
||||
#ifdef VERSION_EU
|
||||
static s8 sLanguageMode = LANGUAGE_ENGLISH;
|
||||
@@ -139,7 +139,7 @@ static s8 sSelectedFileNum = 0;
|
||||
// coin high score, 1 for high score across all files.
|
||||
static s8 sScoreFileCoinScoreMode = 0;
|
||||
|
||||
// In PAL, if no save file exists, open the language menu so the user can find it.
|
||||
// In EU, if no save file exists, open the language menu so the user can find it.
|
||||
#ifdef VERSION_EU
|
||||
static s8 sOpenLangSettings = FALSE;
|
||||
#endif
|
||||
@@ -1708,7 +1708,7 @@ void print_save_file_star_count(s8 fileIndex, s16 x, s16 y) {
|
||||
s16 starCount;
|
||||
|
||||
if (save_file_exists(fileIndex) == TRUE) {
|
||||
starCount = save_file_get_total_star_count(fileIndex, 0, 24);
|
||||
starCount = save_file_get_total_star_count(fileIndex, COURSE_MIN - 1, COURSE_MAX - 1);
|
||||
// Print star icon
|
||||
print_hud_lut_string(HUD_LUT_GLOBAL, x, y, starIcon);
|
||||
// If star count is less than 100, print x icon and move
|
||||
@@ -2495,7 +2495,8 @@ void print_score_file_castle_secret_stars(s8 fileIndex, s16 x, s16 y) {
|
||||
// Print "[star] x"
|
||||
print_menu_generic_string(x, y, textStarX);
|
||||
// Print number of castle secret stars
|
||||
int_to_str(save_file_get_total_star_count(fileIndex, 15, 24), secretStarsText);
|
||||
int_to_str(save_file_get_total_star_count(fileIndex, COURSE_BONUS_STAGES - 1, COURSE_MAX - 1),
|
||||
secretStarsText);
|
||||
#ifdef VERSION_EU
|
||||
print_menu_generic_string(x + 20, y, secretStarsText);
|
||||
#else
|
||||
|
||||
@@ -71,7 +71,7 @@ enum MenuButtonTypes {
|
||||
MENU_BUTTON_ERASE_MAX,
|
||||
|
||||
// Sound Mode Menu (SOUND SELECT)
|
||||
// This menu includes language settings on PAL
|
||||
// This menu includes language settings on EU
|
||||
MENU_BUTTON_SOUND_MODE = MENU_BUTTON_ERASE_MAX,
|
||||
MENU_BUTTON_OPTION_MIN,
|
||||
MENU_BUTTON_STEREO = MENU_BUTTON_OPTION_MIN,
|
||||
|
||||
@@ -38,7 +38,7 @@ static s16 gameOverNotPlayed = 1;
|
||||
|
||||
// don't shift this function from being the first function in the segment.
|
||||
// the level scripts assume this function is the first, so it cant be moved.
|
||||
int run_press_start_demo_timer(s32 timer) {
|
||||
s32 run_press_start_demo_timer(s32 timer) {
|
||||
gCurrDemoInput = NULL;
|
||||
|
||||
if (timer == 0) {
|
||||
@@ -125,7 +125,7 @@ s16 level_select_input_loop(void) {
|
||||
// ... the level select quit combo is being pressed, which uses START. If this
|
||||
// is the case, quit the menu instead.
|
||||
if (gPlayer1Controller->buttonDown == QUIT_LEVEL_SELECT_COMBO) {
|
||||
gDebugLevelSelect = 0;
|
||||
gDebugLevelSelect = FALSE;
|
||||
return -1;
|
||||
}
|
||||
play_sound(SOUND_MENU_STAR_SOUND, gDefaultSoundArgs);
|
||||
@@ -134,7 +134,7 @@ s16 level_select_input_loop(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int intro_default(void) {
|
||||
s32 intro_default(void) {
|
||||
s32 sp1C = 0;
|
||||
|
||||
#ifndef VERSION_JP
|
||||
@@ -150,19 +150,16 @@ int intro_default(void) {
|
||||
print_intro_text();
|
||||
|
||||
if (gPlayer1Controller->buttonPressed & START_BUTTON) {
|
||||
#ifdef VERSION_JP
|
||||
play_sound(SOUND_MENU_STAR_SOUND, gDefaultSoundArgs);
|
||||
sp1C = 100 + gDebugLevelSelect;
|
||||
#else
|
||||
play_sound(SOUND_MENU_STAR_SOUND, gDefaultSoundArgs);
|
||||
sp1C = 100 + gDebugLevelSelect;
|
||||
#ifndef VERSION_JP
|
||||
D_U_801A7C34 = 1;
|
||||
#endif
|
||||
}
|
||||
return run_press_start_demo_timer(sp1C);
|
||||
}
|
||||
|
||||
int intro_game_over(void) {
|
||||
s32 intro_game_over(void) {
|
||||
s32 sp1C = 0;
|
||||
|
||||
#ifndef VERSION_JP
|
||||
@@ -184,7 +181,7 @@ int intro_game_over(void) {
|
||||
return run_press_start_demo_timer(sp1C);
|
||||
}
|
||||
|
||||
int intro_play_its_a_me_mario(void) {
|
||||
s32 intro_play_its_a_me_mario(void) {
|
||||
set_background_music(0, SEQ_SOUND_PLAYER, 0);
|
||||
play_sound(SOUND_MENU_COIN_ITS_A_ME_MARIO, gDefaultSoundArgs);
|
||||
return 1;
|
||||
|
||||
Reference in new issue
Block a user