Start decompiling shop.c

This commit is contained in:
Marcus Huderle
2018-09-01 17:15:35 -05:00
parent 1895383352
commit 8ecf3b2159
8 changed files with 430 additions and 875 deletions

View File

@@ -3,6 +3,40 @@
extern EWRAM_DATA struct ItemSlot gUnknown_02039F80[3];
enum
{
MART_TYPE_0, // normal mart
MART_TYPE_1,
MART_TYPE_2,
};
struct MartInfo
{
/*0x0*/ void (* callback) (void);
/*0x4*/ const struct MenuAction *menuActions;
/*0x8*/ const u16 *itemList;
/*0xC*/ u16 itemCount;
/*0xE*/ u8 windowId;
/*0xF*/ u8 martType;
};
struct BuyMenuLabel
{
u8 label[16];
};
struct ShopData
{
/*0x0000*/ u8 filler0[0x2004];
/*0x2004*/ u16 unk2004;
/*0x2006*/ u8 filler2006[0x5];
/*0x200B*/ u8 unk200B;
/*0x200C*/ u8 unk200C;
/*0x200D*/ s8 unk200D;
/*0x200E*/ s8 unk200E;
/*0x200F*/ u8 filler200F[0xA1];
};
void CreatePokemartMenu(const u16 *);
void CreateDecorationShop1Menu(const u16 *);
void CreateDecorationShop2Menu(const u16 *);