From a2d206665c6fffbd962375f262b7fbb05c7b7478 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Tue, 30 Mar 2021 13:11:51 -0500 Subject: Move some data and Splitting (#32) * move friend area settings to src * split out playtime into different C file and decomp a few more funcs * time -> play_time * fix include * split out more wonder mail stuff * unify 203B2C0 and unkDungeon structs. snuck in a decomp func too * split out more menu screens * work some more on trade items * doc a few more things * add a close nonmatch and decomp nullsub and small func * rollback struct attempt since it causes nonmatchings * only one func left in asm * death to trade_item asm and unify into one C file * more docing and cleanup * label main menu and trade items menu global menu struct * doc itemMode --- include/trade_items_menu.h | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 include/trade_items_menu.h (limited to 'include/trade_items_menu.h') diff --git a/include/trade_items_menu.h b/include/trade_items_menu.h new file mode 100644 index 0000000..73435a3 --- /dev/null +++ b/include/trade_items_menu.h @@ -0,0 +1,57 @@ +#ifndef GUARD_TRADE_ITEMS_MENU_H +#define GUARD_TRADE_ITEMS_MENU_H + +struct unkData +{ + u8 unk0[24]; +}; + +struct TradeSubStruct +{ + u8 unk0; // item id? + u8 fill3[0x3]; + u32 unk4; // number of items? +}; + + +struct TradeItemsMenu +{ + // size: 0x3A0 + u32 currMenu; + u32 unk4; + u32 itemMode; + u32 linkStatus; + u32 unk10; + u32 unk14; // item # + u32 unk18; + u32 unk1C; + u32 unk20; + u32 unk24; + u32 unk28; + struct unkData *unk2C; + u32 unk30; + u32 unk34; + u8 fill38[0x44 - 0x38]; + u32 unk44; + u8 fill8[0x134 - 0x48]; + u32 unk134; + u8 fill138[0x184 - 0x138]; + struct unkData unk184[3]; // guessing the size until I know + u8 fill188[0x1E4 - 0x1CC]; + u32 unk1E4; + u8 fill1E8[0x244 - 0x1E8]; + + // TODO These might be structs... + struct TradeSubStruct unk244; + + struct TradeSubStruct unk24C; + + struct TradeSubStruct unk254; + + u8 unk25C; + u8 unk25D; + u8 unk25E; + u8 fill25F[0x3A0 - 0x25F]; +}; + +#endif -- cgit v1.2.3