Make aligned original data its own struct for prasing reasons

This commit is contained in:
Cuyler36
2024-01-18 04:11:20 -05:00
parent 0956d14c78
commit 57548b82a8
3 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ extern "C" {
typedef struct mask_cat_data_s {
/* 0x000 */ PersonalID_c creator_pid;
/* 0x020 */ u8 design[mNW_DESIGN_TEX_SIZE] ATTRIBUTE_ALIGN(32); /* this is aligned to 32 bytes for ARAM transfer */
/* 0x020 */ mNW_original_tex_c design; /* this is aligned to 32 bytes for ARAM transfer */
} mMC_design_c;
typedef struct mask_cat_s {
+5 -1
View File
@@ -42,12 +42,16 @@ enum {
mNW_PALETTE_NUM
};
typedef struct original_texture_s {
u8 data[mNW_DESIGN_TEX_SIZE];
} ATTRIBUTE_ALIGN(32) mNW_original_tex_c;
/* sizeof(mNW_original_design_c) == 0x220 */
typedef struct original_data_s {
/* 0x000 */ u8 name[mNW_ORIGINAL_DESIGN_NAME_LEN];
/* 0x010 */ u8 palette;
/* 0x020 */ u8 design[mNW_DESIGN_TEX_SIZE] ATTRIBUTE_ALIGN(32); /* this is aligned to 32 bytes for ARAM transfer */
/* 0x020 */ mNW_original_tex_c design; /* this is aligned to 32 bytes for ARAM transfer */
} mNW_original_design_c;
/* sizeof(mNW_needlework_c) == 0x1100 */