Add SET_ECHO level script command + minor BETTER_REVERB refactoring (#591)
* Add SET_ECHO level script command + minor BETTER_REVERB refactoring * Add Puppyprint debug page for trying out different BETTER_REVERB presets and configurations Also fix a missing Puppyprint enum that was causing issues * Modify Puppyprint BETTER_REVERB page + other minor improvements * Swap order of RSP commands to allow reverb downsampling to sound more similar to that of without downsampling
This commit is contained in:
1 parent
e2cf2d5119
commit
37787dffc9
16 files changed
+688
-70
No files matched your search
+22
-4
@@ -178,6 +178,16 @@ u32 pressed_pause(void) {
|
||||
u32 dialogActive = get_dialog_id() >= 0;
|
||||
u32 intangible = (gMarioState->action & ACT_FLAG_INTANGIBLE) != 0;
|
||||
|
||||
#ifdef PUPPYPRINT_DEBUG
|
||||
#ifdef BETTER_REVERB
|
||||
if (sPPDebugPage == PUPPYPRINT_PAGE_RAM || sPPDebugPage == PUPPYPRINT_PAGE_LEVEL_SELECT || sPPDebugPage == PUPPYPRINT_PAGE_BETTER_REVERB) {
|
||||
#else
|
||||
if (sPPDebugPage == PUPPYPRINT_PAGE_RAM || sPPDebugPage == PUPPYPRINT_PAGE_LEVEL_SELECT) {
|
||||
#endif
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!intangible && !dialogActive && !gWarpTransition.isActive && sDelayedWarpOp == WARP_OP_NONE
|
||||
&& (gPlayer1Controller->buttonPressed & START_BUTTON)) {
|
||||
return TRUE;
|
||||
@@ -397,7 +407,7 @@ void init_mario_after_warp(void) {
|
||||
|
||||
if (gCurrDemoInput == NULL) {
|
||||
#ifdef BETTER_REVERB
|
||||
gBetterReverbPreset = gCurrentArea->betterReverbPreset;
|
||||
gBetterReverbPresetValue = gCurrentArea->betterReverbPreset;
|
||||
#endif
|
||||
set_background_music(gCurrentArea->musicParam, gCurrentArea->musicParam2, 0);
|
||||
|
||||
@@ -509,7 +519,7 @@ void warp_credits(void) {
|
||||
|
||||
if (gCurrCreditsEntry == NULL || gCurrCreditsEntry == sCreditsSequence) {
|
||||
#ifdef BETTER_REVERB
|
||||
gBetterReverbPreset = gCurrentArea->betterReverbPreset;
|
||||
gBetterReverbPresetValue = gCurrentArea->betterReverbPreset;
|
||||
#endif
|
||||
set_background_music(gCurrentArea->musicParam, gCurrentArea->musicParam2, 0);
|
||||
}
|
||||
@@ -1008,7 +1018,11 @@ s32 play_mode_normal(void) {
|
||||
check_instant_warp();
|
||||
|
||||
#ifdef PUPPYPRINT_DEBUG
|
||||
#ifdef BETTER_REVERB
|
||||
if (sPPDebugPage != PUPPYPRINT_PAGE_RAM && sPPDebugPage != PUPPYPRINT_PAGE_LEVEL_SELECT && sPPDebugPage != PUPPYPRINT_PAGE_BETTER_REVERB) {
|
||||
#else
|
||||
if (sPPDebugPage != PUPPYPRINT_PAGE_RAM && sPPDebugPage != PUPPYPRINT_PAGE_LEVEL_SELECT) {
|
||||
#endif
|
||||
if (sTimerRunning && gHudDisplay.timer < 17999) {
|
||||
gHudDisplay.timer++;
|
||||
}
|
||||
@@ -1026,7 +1040,11 @@ s32 play_mode_normal(void) {
|
||||
#endif
|
||||
if (gCurrentArea != NULL) {
|
||||
#ifdef PUPPYPRINT_DEBUG
|
||||
if (sPPDebugPage != PUPPYPRINT_PAGE_RAM && sPPDebugPage != PUPPYPRINT_PAGE_LEVEL_SELECT) {
|
||||
#ifdef BETTER_REVERB
|
||||
if (sPPDebugPage != PUPPYPRINT_PAGE_RAM && sPPDebugPage != PUPPYPRINT_PAGE_LEVEL_SELECT && sPPDebugPage != PUPPYPRINT_PAGE_BETTER_REVERB) {
|
||||
#else
|
||||
if (sPPDebugPage != PUPPYPRINT_PAGE_RAM && sPPDebugPage != PUPPYPRINT_PAGE_LEVEL_SELECT) {
|
||||
#endif
|
||||
update_camera(gCurrentArea->camera);
|
||||
}
|
||||
#else
|
||||
@@ -1275,7 +1293,7 @@ s32 init_level(void) {
|
||||
|
||||
if (gCurrDemoInput == NULL) {
|
||||
#ifdef BETTER_REVERB
|
||||
gBetterReverbPreset = gCurrentArea->betterReverbPreset;
|
||||
gBetterReverbPresetValue = gCurrentArea->betterReverbPreset;
|
||||
#endif
|
||||
set_background_music(gCurrentArea->musicParam, gCurrentArea->musicParam2, 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user