summaryrefslogtreecommitdiffstats
path: root/src/extras
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/extras/debugmenu.cpp2
-rw-r--r--src/extras/debugmenu.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/extras/debugmenu.cpp b/src/extras/debugmenu.cpp
index bb0ed55e..a31426bb 100644
--- a/src/extras/debugmenu.cpp
+++ b/src/extras/debugmenu.cpp
@@ -1,4 +1,5 @@
#include "common.h"
+#ifdef DEBUGMENU
#include "RwHelper.h"
#include "Pad.h"
#include "ControllerConfig.h"
@@ -1313,3 +1314,4 @@ DebugMenuEntrySetAddress(MenuEntry *e, void *addr)
((MenuEntry_Float32*)e)->variable = (float*)addr;
}
}
+#endif \ No newline at end of file
diff --git a/src/extras/debugmenu.h b/src/extras/debugmenu.h
index ae595c1f..eb56c8f9 100644
--- a/src/extras/debugmenu.h
+++ b/src/extras/debugmenu.h
@@ -1,5 +1,7 @@
#pragma once
+#ifdef DEBUGMENU
+
typedef void (*TriggerFunc)(void);
struct Menu;
@@ -85,3 +87,4 @@ inline DebugMenuEntry *DebugMenuAddVarBool8(const char *path, const char *name,
{
return DebugMenuAddVarBool8(path, name, (int8_t*)ptr, triggerFunc);
}
+#endif \ No newline at end of file