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
@@ -1471,6 +1471,7 @@ s32 act_teleport_fade_in(struct MarioState *m) {
|
||||
}
|
||||
}
|
||||
|
||||
m->pos[1] = m->floorHeight;
|
||||
stop_and_set_height_to_floor(m);
|
||||
|
||||
return FALSE;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "sm64.h"
|
||||
#include "game_init.h"
|
||||
#include "main.h"
|
||||
#include "audio/external.h"
|
||||
#include "engine/math_util.h"
|
||||
#include "area.h"
|
||||
#include "level_update.h"
|
||||
@@ -717,6 +718,10 @@ void save_file_set_widescreen_mode(u8 mode) {
|
||||
#endif
|
||||
|
||||
u32 save_file_get_sound_mode(void) {
|
||||
if (gSaveBuffer.menuData.soundMode >= SOUND_MODE_COUNT) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return gSaveBuffer.menuData.soundMode;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,11 +36,6 @@ static u16 sCurrentCapMusic = MUSIC_NONE;
|
||||
#ifdef ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS
|
||||
static u8 sPlayingInfiniteStairs = FALSE;
|
||||
#endif
|
||||
#ifdef ENABLE_STEREO_HEADSET_EFFECTS
|
||||
static s16 sSoundMenuModeToSoundMode[3] = { SOUND_MODE_STEREO, SOUND_MODE_MONO, SOUND_MODE_HEADSET };
|
||||
#else
|
||||
static s16 sSoundMenuModeToSoundMode[2] = { SOUND_MODE_STEREO, SOUND_MODE_MONO };
|
||||
#endif
|
||||
// Only the 20th array element is used.
|
||||
static u32 sMenuSoundsExtra[] = {
|
||||
SOUND_MOVING_TERRAIN_SLIDE + (0 << 16),
|
||||
@@ -147,8 +142,8 @@ void enable_background_sound(void) {
|
||||
* Called from threads: thread5_game_loop
|
||||
*/
|
||||
void set_sound_mode(u16 soundMode) {
|
||||
if (soundMode < ARRAY_COUNT(sSoundMenuModeToSoundMode)) {
|
||||
gSoundMode = sSoundMenuModeToSoundMode[soundMode];
|
||||
if (soundMode < SOUND_MODE_COUNT) {
|
||||
gSoundMode = soundMode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,12 +17,6 @@ enum SoundMenuFlags {
|
||||
SOUND_MENU_FLAG_EXTRA = (1 << 8), // 0x100
|
||||
};
|
||||
|
||||
enum SoundMenuMode {
|
||||
SOUND_MENU_MODE_STEREO,
|
||||
SOUND_MENU_MODE_MONO,
|
||||
SOUND_MENU_MODE_HEADSET
|
||||
};
|
||||
|
||||
void reset_volume(void);
|
||||
void raise_background_noise(s32 a);
|
||||
void lower_background_noise(s32 a);
|
||||
|
||||
Reference in new issue
Block a user