summaryrefslogtreecommitdiff
path: root/include/party_menu.h
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-06-25 00:02:59 -0400
committerGitHub <noreply@github.com>2017-06-25 00:02:59 -0400
commit45b4b7ed85022c7771ee1adab8336f2b438b845e (patch)
tree9bcb35cfef25ddd2be992333dbff92c232b36d3d /include/party_menu.h
parent5e786fcdd9f414eb9614331ea13af21de6f667d0 (diff)
parent2f31720f6b58f0d929adb3cf69f257f30621c03c (diff)
Merge pull request #329 from camthesaxman/decompile_choose_party
decompile choose_party
Diffstat (limited to 'include/party_menu.h')
-rw-r--r--include/party_menu.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/party_menu.h b/include/party_menu.h
index 917d6a58c..58292081f 100644
--- a/include/party_menu.h
+++ b/include/party_menu.h
@@ -16,6 +16,44 @@ struct PartyPopupMenu
const u8 *unk4;
};
+// TODO: Unify these two structs
+
+#define DATA_COUNT (6)
+struct Unk201B000
+{
+ //u8 filler0[0x260];
+ struct Pokemon unk0[6];
+ u8 filler258[1];
+ u8 unk259;
+ u8 filler25A[6];
+ u8 unk260;
+ u8 unk261;
+ u8 unk262;
+ u8 unk263;
+ s16 unk264[DATA_COUNT * 2]; // This may be a union
+ u8 filler27C[2];
+ s16 unk27E;
+ s16 unk280;
+ s16 unk282;
+};
+
+struct Struct201B000
+{
+ u8 filler0[0x259];
+ u8 unk259;
+ u8 filler25A[6];
+ u8 unk260;
+ u8 filler261[1];
+ u8 unk262;
+ s16 unk264;
+ s16 unk266;
+};
+
+extern u8 ewram[];
+#define ewram1B000 (*(struct Unk201B000 *)(ewram + 0x1B000))
+#define ewram1B000_alt (*(struct Struct201B000 *)(ewram + 0x1B000))
+#define EWRAM_1B000 ewram1B000_alt
+
void sub_806AEDC(void);
void sub_806AF4C();
void OpenPartyMenu(u8, u8);