started working on generic menu structs

This commit is contained in:
Henny022p
2022-01-24 02:16:20 +01:00
parent 0e57341980
commit 6fd53ccfa0
6 changed files with 119 additions and 110 deletions
+13 -4
View File
@@ -44,8 +44,11 @@ typedef struct {
/*0x08*/ u16 transitionTimer;
/*0x0a*/ u16 field_0xa;
/*0x0c*/ u8* field_0xc;
/*0x10*/ // u8 focusCoords[2];
union {
} Menu;
typedef struct {
/*0x00*/ Menu base;
/*0x10*/ union {
s32 i;
u16 h[2];
u8 a[4];
@@ -75,9 +78,15 @@ typedef struct {
/*0x2c*/ s8 unk2c;
/*0x2d*/ u8 unk2d;
/*0x2e*/ union SplitHWord unk2e;
} Menu;
static_assert(sizeof(Menu) == 0x30);
} GenericMenu;
static_assert(sizeof(GenericMenu) == 0x30);
typedef struct {
Menu base;
} KinstoneMenu;
extern Menu gMenu;
#define gGenericMenu (*(GenericMenu*)&gMenu)
#define gKinstoneMenu (*(KinstoneMenu*)&gMenu)
#endif