From 92bf7dec94bae1d8ccff827d52d97a64c9304eeb Mon Sep 17 00:00:00 2001 From: Sam Edding Date: Sat, 1 Jun 2024 20:07:58 +0200 Subject: [PATCH] automatically enable debug menu when building for debug --- include/config/debug.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/include/config/debug.h b/include/config/debug.h index eea676b3070c..77d2860c4e5c 100644 --- a/include/config/debug.h +++ b/include/config/debug.h @@ -2,16 +2,27 @@ #define GUARD_CONFIG_DEBUG_H // Overworld Debug -#define DEBUG_OVERWORLD_MENU TRUE // Enables an overworld debug menu to change flags, variables, giving pokemon and more, accessed by holding R and pressing START while in the overworld by default. +#define DEBUG_OVERWORLD_MENU FALSE // Enables an overworld debug menu to change flags, variables, giving pokemon and more, accessed by holding R and pressing START while in the overworld by default. #define DEBUG_OVERWORLD_HELD_KEYS (R_BUTTON) // The keys required to be held to open the debug menu. #define DEBUG_OVERWORLD_TRIGGER_EVENT pressedStartButton // The event that opens the menu when holding the key(s) defined in DEBUG_OVERWORLD_HELD_KEYS. #define DEBUG_OVERWORLD_IN_MENU FALSE // Replaces the overworld debug menu button combination with a start menu entry (above Pokédex). // Battle Debug Menu -#define DEBUG_BATTLE_MENU TRUE // If set to TRUE, enables a debug menu to use in battles by pressing the Select button. +#define DEBUG_BATTLE_MENU FALSE // If set to TRUE, enables a debug menu to use in battles by pressing the Select button. #define DEBUG_AI_DELAY_TIMER FALSE // If set to TRUE, displays the number of frames it takes for the AI to choose a move. Replaces the "What will PKMN do" text. Useful for devs or anyone who modifies the AI code and wants to see if it doesn't take too long to run. // Pokémon Debug -#define DEBUG_POKEMON_MENU TRUE // Enables a debug menu for pokemon sprites and icons, accessed by pressing SELECT in the summary screen. +#define DEBUG_POKEMON_MENU FALSE // Enables a debug menu for pokemon sprites and icons, accessed by pressing SELECT in the summary screen. + +#ifdef DEBUG_TARGET +#undef DEBUG_OVERWORLD_MENU +#define DEBUG_OVERWORLD_MENU TRUE + +#undef DEBUG_BATTLE_MENU +#define DEBUG_BATTLE_MENU TRUE + +#undef DEBUG_POKEMON_MENU +#define DEBUG_POKEMON_MENU TRUE +#endif #endif // GUARD_CONFIG_DEBUG_H