summaryrefslogtreecommitdiff
path: root/src/Z2AudioLib
diff options
context:
space:
mode:
authorMax Roncace <me@caseif.net>2025-12-06 16:34:47 -0500
committerGitHub <noreply@github.com>2025-12-06 13:34:47 -0800
commita30e617e5a9b8264053788429a587ee1763eae73 (patch)
treed4f3dbf04e754e5741ba35b1ba1083851be87597 /src/Z2AudioLib
parent9f1a6488512209cc1acc612aa390e9a4686037ca (diff)
Various debug conditional compilation cleanup (#2915)
* Global: Define DEBUG as 0 if not already defined * Clean up DEBUG-guarded code
Diffstat (limited to 'src/Z2AudioLib')
-rw-r--r--src/Z2AudioLib/Z2EnvSeMgr.cpp6
-rw-r--r--src/Z2AudioLib/Z2SeqMgr.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Z2AudioLib/Z2EnvSeMgr.cpp b/src/Z2AudioLib/Z2EnvSeMgr.cpp
index 7bd284d543..0c6884b9a2 100644
--- a/src/Z2AudioLib/Z2EnvSeMgr.cpp
+++ b/src/Z2AudioLib/Z2EnvSeMgr.cpp
@@ -4,7 +4,7 @@
#include "d/d_save.h"
#include "d/d_com_inf_game.h"
-#ifdef DEBUG
+#if DEBUG
static const char* sSpotName[] = {
"F_SP00",
"F_SP103",
@@ -1039,7 +1039,7 @@ void Z2EnvSeMgr::setHyrulSewerOpen(bool isSewerOpen) {
}
bool Z2EnvSeMgr::startRiverSe(s8 param_1) {
- #ifdef DEBUG
+ #if DEBUG
const char** spotName = sSpotName;
#endif
@@ -1271,7 +1271,7 @@ void Z2EnvSeMgr::registEtcSePos(Vec* posPtr) {
}
bool Z2EnvSeMgr::startEtcSe(s8 reverb) {
- #ifdef DEBUG
+ #if DEBUG
const char** spotName = sSpotName;
#endif
diff --git a/src/Z2AudioLib/Z2SeqMgr.cpp b/src/Z2AudioLib/Z2SeqMgr.cpp
index 66848bcefd..390d6aa0b1 100644
--- a/src/Z2AudioLib/Z2SeqMgr.cpp
+++ b/src/Z2AudioLib/Z2SeqMgr.cpp
@@ -106,7 +106,7 @@ Z2SeqMgr::Z2SeqMgr() : JASGlobalInstance<Z2SeqMgr>(true) {
mAllBgmMaster.forceIn();
field_0xa4.forceIn();
- #ifdef DEBUG
+ #if DEBUG
field_0x00_debug = 1.0f;
field_0x04_debug = 0;
#endif