mirror of
https://github.com/halpz/re3.git
synced 2025-06-28 06:16:21 +00:00
Place debug menu under ifdef
This commit is contained in:
@ -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
|
@ -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
|
Reference in New Issue
Block a user