Merge branch 'develop/2.1.0' of https://github.com/Arceveti/HackerSM64 into develop/2.1.0-four-controllers-base
This commit is contained in:
commit
973eec3c93
14 files changed
+113
-113
No files matched your search
+7
-11
@@ -87,11 +87,10 @@ u8 sTextFadeAlpha = 0;
|
||||
// and when you click yes/no in the erase confirmation prompt.
|
||||
s16 sMainMenuTimer = 0;
|
||||
|
||||
// Sound mode menu buttonID, has different values compared to gSoundMode in audio.
|
||||
// 0: gSoundMode = 0 (Stereo) | 1: gSoundMode = 3 (Mono) | 2: gSoundMode = 1 (Headset)
|
||||
// Sound mode menu buttonID
|
||||
s8 sSoundMode = 0;
|
||||
|
||||
// Active language for EU arrays, values defined similar to sSoundMode
|
||||
// Active language for EU arrays
|
||||
// 0: English | 1: French | 2: German
|
||||
|
||||
// Tracks which button will be pressed in the erase confirmation prompt (yes/no).
|
||||
@@ -836,7 +835,7 @@ void render_sound_mode_menu_buttons(struct Object *soundModeButton) {
|
||||
sMainMenuButtons[MENU_BUTTON_LANGUAGE_RETURN]->oMenuButtonScale = MENU_BUTTON_SCALE;
|
||||
#else
|
||||
// Zoom in current selection
|
||||
sMainMenuButtons[MENU_BUTTON_OPTION_MIN + sSoundMode]->oMenuButtonState = MENU_BUTTON_STATE_ZOOM_IN;
|
||||
sMainMenuButtons[MENU_BUTTON_SOUND_OPTION_MIN + sSoundMode]->oMenuButtonState = MENU_BUTTON_STATE_ZOOM_IN;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -856,12 +855,7 @@ void check_sound_mode_menu_clicked_buttons(struct Object *soundModeButton) {
|
||||
if (check_clicked_button(buttonX, buttonY, 22.0f) == TRUE) {
|
||||
// If sound mode button clicked, select it and define sound mode
|
||||
// The check will always be true because of the group configured above (In JP & US)
|
||||
#ifdef ENABLE_STEREO_HEADSET_EFFECTS
|
||||
if (buttonID == MENU_BUTTON_STEREO || buttonID == MENU_BUTTON_MONO
|
||||
|| buttonID == MENU_BUTTON_HEADSET) {
|
||||
#else
|
||||
if (buttonID == MENU_BUTTON_STEREO || buttonID == MENU_BUTTON_MONO) {
|
||||
#endif
|
||||
if (buttonID >= MENU_BUTTON_SOUND_OPTION_MIN && buttonID < MENU_BUTTON_SOUND_OPTION_MAX) {
|
||||
if (soundModeButton->oMenuButtonActionPhase == SOUND_MODE_PHASE_MAIN) {
|
||||
play_sound(SOUND_MENU_CLICK_FILE_SELECT, gGlobalSoundSource);
|
||||
#if ENABLE_RUMBLE
|
||||
@@ -873,7 +867,7 @@ void check_sound_mode_menu_clicked_buttons(struct Object *soundModeButton) {
|
||||
// because they don't have a case in bhv_menu_button_manager_loop
|
||||
sSelectedButtonID = buttonID;
|
||||
#endif
|
||||
sSoundMode = buttonID - MENU_BUTTON_OPTION_MIN;
|
||||
sSoundMode = buttonID - MENU_BUTTON_SOUND_OPTION_MIN;
|
||||
save_file_set_sound_mode(sSoundMode);
|
||||
}
|
||||
}
|
||||
@@ -2062,3 +2056,5 @@ s32 lvl_update_obj_and_load_file_selected(UNUSED s32 arg, UNUSED s32 unused) {
|
||||
area_update_objects();
|
||||
return sSelectedFileNum;
|
||||
}
|
||||
|
||||
STATIC_ASSERT(SOUND_MODE_COUNT == MENU_BUTTON_SOUND_OPTION_MAX - MENU_BUTTON_SOUND_OPTION_MIN, "Mismatch between number of sound modes in audio code and file select!");
|
||||
@@ -79,22 +79,26 @@ enum MenuButtonTypes {
|
||||
// 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,
|
||||
MENU_BUTTON_SOUND_OPTION_MIN = MENU_BUTTON_OPTION_MIN,
|
||||
MENU_BUTTON_STEREO = MENU_BUTTON_SOUND_OPTION_MIN,
|
||||
MENU_BUTTON_MONO,
|
||||
#ifdef ENABLE_STEREO_HEADSET_EFFECTS
|
||||
MENU_BUTTON_HEADSET,
|
||||
#endif
|
||||
MENU_BUTTON_SOUND_OPTION_MAX,
|
||||
|
||||
#if MULTILANG
|
||||
// Language Menu
|
||||
MENU_BUTTON_LANGUAGE_MIN,
|
||||
MENU_BUTTON_LANGUAGE_MIN = MENU_BUTTON_SOUND_OPTION_MAX,
|
||||
MENU_BUTTON_LANGUAGE_ENGLISH = MENU_BUTTON_LANGUAGE_MIN,
|
||||
MENU_BUTTON_LANGUAGE_FRENCH,
|
||||
MENU_BUTTON_LANGUAGE_GERMAN,
|
||||
MENU_BUTTON_LANGUAGE_RETURN,
|
||||
#endif
|
||||
|
||||
MENU_BUTTON_OPTION_MAX
|
||||
#else
|
||||
MENU_BUTTON_OPTION_MAX = MENU_BUTTON_SOUND_OPTION_MAX
|
||||
#endif
|
||||
};
|
||||
|
||||
enum ScoreMenuMessageID {
|
||||
|
||||
Reference in new issue
Block a user