summaryrefslogtreecommitdiff
path: root/src/debug_menu_mid.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-05-15 16:59:55 -0700
committerGitHub <noreply@github.com>2021-05-15 18:59:55 -0500
commitf402e46cd3c8b7236673d6edbae77903a7cc0618 (patch)
tree37a19f3ab35a73c29d4d6da565741beaf7bb547f /src/debug_menu_mid.c
parentf65dee5a143bd543c74c010d7252eb76893ee243 (diff)
Sese's April/May Dump (#37)
* splitting lots of pokemon square and labeling lots of other things * actually commit this stuff * more moving data and things * more screen work * split out some pokemon dungeon data * lots of data work * push more data work * split kecleon, decomp another kanghaskhan func, and try to doc UpdateBGControl more * lots of item work * label more item things * subtype -> category and doc types/category
Diffstat (limited to 'src/debug_menu_mid.c')
-rw-r--r--src/debug_menu_mid.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/debug_menu_mid.c b/src/debug_menu_mid.c
index 7bd3d74..8ca2cbd 100644
--- a/src/debug_menu_mid.c
+++ b/src/debug_menu_mid.c
@@ -1,15 +1,13 @@
#include "global.h"
#include "input.h"
+#include "gUnknown_203B460.h"
struct unkData
{
- u8 unk0[14];
- u16 unkD;
- u16 unk10;
- u16 unk12;
- u8 *unk14;
+ u8 unk0[24];
};
+
struct unkStruct_203B3F0
{
// size: 0x138
@@ -63,12 +61,7 @@ struct unkStruct_203B3F4
extern struct unkStruct_203B3F4 *gUnknown_203B3F4;
-struct unkStruct_203B460
-{
- u8 unk0[0x50];
- u16 unk50[10];
-};
-extern struct unkStruct_203B460 *gUnknown_203B460; // TODO unify this
+extern struct unkStruct_203B460 *gUnknown_203B460;
extern void sub_801B3C0(u8 *);
extern void sub_8090A8C(u8 *, u8, u32);
extern void sub_8013AA0(u32 *);
@@ -80,7 +73,6 @@ extern struct unkData gUnknown_80E7EA4;
extern struct unkData gUnknown_80E7E8C;
extern u32 gDebug_NumberText;
-extern u32 gDebug_NumberText;
extern u32 gUnknown_80D4970;
@@ -357,7 +349,7 @@ u32 sub_803A888(void)
{
ResetUnusedInputStruct();
sub_800641C(0, 1, 1);
- gUnknown_203B3F4 = MemoryAlloc(0xFC, 8);
+ gUnknown_203B3F4 = MemoryAlloc(sizeof(struct unkStruct_203B3F4), 8);
sub_803A924(0);
return 1;
}