Skip to content

Commit

Permalink
Split debug menu option into separate options.
Browse files Browse the repository at this point in the history
Split debug menu option into separate options for the runtime debug
menu and the title debug menu.
  • Loading branch information
gibbed committed Jun 18, 2020
1 parent 7a46bfa commit 304550e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions source/debug_menu.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ patch_text_start call_create_debug_menu
bl my_create_debug_menu
patch_text_end call_create_debug_menu

#endif

#ifdef TITLE_DEBUG_MENU

patch_text_start setup_title_menu
bl init_debug_title_menu
patch_text_end setup_title_menu

#endif

#ifdef DEBUG_MENU

cave_start my_create_debug_menu
stdu %r1, -16(%r1)
mfspr %r0, %lr
Expand Down
5 changes: 4 additions & 1 deletion source/options.inc.S
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#ifndef __OPTIONS_S
#define __OPTIONS_S

# Enable debug menu patches.
# Enable runtime debug menu.
#define DEBUG_MENU

# Enable title debug menu.
#define TITLE_DEBUG_MENU

# Increase memory zones so Northern Limit files can load without crashing.
#define INCREASE_MEMORY_ZONES

Expand Down

0 comments on commit 304550e

Please sign in to comment.