summaryrefslogtreecommitdiff
path: root/src/debug_menu.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2022-02-26 09:59:49 -0800
committerGitHub <noreply@github.com>2022-02-26 09:59:49 -0800
commit0dd38993f6a4383d6d5743fd0ae0abc01210ae25 (patch)
tree6edf91e26be4f3a298da9c6039faabc797b4a778 /src/debug_menu.c
parent3555fb7c945ef5152910a84390ecbd1a38ea585d (diff)
parent2d6f3afbd4bbfc1796a91f6a8f4d6ee140488ca8 (diff)
Merge pull request #95 from SethBarberee/data_move
Move Menu Data to src/data/menus
Diffstat (limited to 'src/debug_menu.c')
-rw-r--r--src/debug_menu.c46
1 files changed, 15 insertions, 31 deletions
diff --git a/src/debug_menu.c b/src/debug_menu.c
index da765a1..376b267 100644
--- a/src/debug_menu.c
+++ b/src/debug_menu.c
@@ -1,5 +1,6 @@
#include "global.h"
#include "debug_menu.h"
+#include "input.h"
#include "main_menu.h"
#include "menu.h"
#include "memory.h"
@@ -26,45 +27,28 @@ const struct UnkTextStruct2 gUnknown_80E7D58 =
NULL
};
-extern const char dungeons_string[];
-extern const char field_string[];
-extern const char field_map_string[];
-extern const char field_script_string[];
-extern const char debug_menu_string[];
-extern const char storage_string[];
-extern const char h_open_string[];
-
-
const struct MenuItem gDebugMenuItems[8] =
{
- {dungeons_string, MENU_DEBUG_MENU_DUNGEONS},
- {field_string, MENU_DEBUG_MENU_FIELD},
- {field_map_string, MENU_DEBUG_MENU_FIELD_MAP},
- {field_script_string, MENU_DEBUG_MENU_FIELD_SCRIPT},
- {debug_menu_string, MENU_DEBUG_MENU_DEBUG_MENU},
- {storage_string, MENU_DEBUG_MENU_STORAGE},
- {h_open_string, MENU_DEBUG_MENU_H_OPEN},
+ {"Dungeons", MENU_DEBUG_MENU_DUNGEONS},
+ {"Field", MENU_DEBUG_MENU_FIELD},
+ {"Field Map", MENU_DEBUG_MENU_FIELD_MAP},
+ {"Field Script", MENU_DEBUG_MENU_FIELD_SCRIPT},
+ {"Debug Menu", MENU_DEBUG_MENU_DEBUG_MENU},
+ {"Storage", MENU_DEBUG_MENU_STORAGE},
+ {"h-open", MENU_DEBUG_MENU_H_OPEN},
{NULL, 10},
};
-ALIGNED(4) const char h_open_string[] = "h-open";
-ALIGNED(4) const char storage_string[] = "Storage";
-ALIGNED(4) const char debug_menu_string[] = "Debug Menu";
-ALIGNED(4) const char field_script_string[] = "Field Script";
-ALIGNED(4) const char field_map_string[] = "Field Map";
-ALIGNED(4) const char field_string[] = "Field";
-ALIGNED(4) const char dungeons_string[] = "Dungeons";
+ALIGNED(4) static const char debug_menu_fill0[] = "pksdir0";
+ALIGNED(4) static const char debug_menu_fill1[] = "pksdir0";
+ALIGNED(4) static const char debug_menu_fill2[] = "pksdir0";
+ALIGNED(4) static const char debug_menu_fill3[] = "pksdir0";
+ALIGNED(4) static const char debug_menu_fill4[] = "pksdir0";
+ALIGNED(4) static const char debug_menu_fill5[] = "pksdir0";
+ALIGNED(4) static const char debug_menu_fill6[] = "pksdir0";
-ALIGNED(4) const char debug_menu_fill0[] = "pksdir0";
-ALIGNED(4) const char debug_menu_fill1[] = "pksdir0";
-ALIGNED(4) const char debug_menu_fill2[] = "pksdir0";
-ALIGNED(4) const char debug_menu_fill3[] = "pksdir0";
-ALIGNED(4) const char debug_menu_fill4[] = "pksdir0";
-ALIGNED(4) const char debug_menu_fill5[] = "pksdir0";
-ALIGNED(4) const char debug_menu_fill6[] = "pksdir0";
-extern void ResetUnusedInputStruct(void);
extern u8 sub_8012FD8(struct DebugMenu *);
extern void sub_8013114(struct DebugMenu *, s32 *);
extern void sub_80976F8(u8);