Skip to content

Commit

Permalink
automatically enable debug menu when building for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
u8-Salem committed Jun 1, 2024
1 parent 29bacfc commit 92bf7de
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions include/config/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 92bf7de

Please sign in to comment.