Place debug menu under ifdef

This commit is contained in:
Sergeanur
2020-05-09 16:06:13 +03:00
parent 1b599b2d35
commit 28103775ba
11 changed files with 27 additions and 7 deletions

View File

@ -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

View File

@ -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