summaryrefslogtreecommitdiff
path: root/include/save_block_2.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/save_block_2.h')
-rw-r--r--include/save_block_2.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/include/save_block_2.h b/include/save_block_2.h
index fe052b1d..5257b11d 100644
--- a/include/save_block_2.h
+++ b/include/save_block_2.h
@@ -13,31 +13,37 @@ struct SavArrayHeader
u16 field_E;
};
+struct SavArrayFooter
+{
+ u32 magic;
+ u32 next;
+ u32 size;
+ u16 id;
+ u16 crc;
+};
+
struct SaveBlock2_Sub_20464 {
- u8 unk_0;
- u8 padding[3];
- int unk_4;
- int unk_8;
- u8 unk_C;
- u8 unk_D;
- u8 unk_E;
- u8 padding2;
+ u32 unk_0;
+ u32 offset;
+ u32 size;
};
struct SaveBlock2
{
- /* 0x00000 */ int unk_00000;
+ /* 0x00000 */ int flashType;
/* 0x00004 */ int unk_00004;
/* 0x00008 */ int unk_00008;
/* 0x0000C */ int unk_0000C;
/* 0x00010 */ int unk_00010;
- /* 0x00014 */ struct MATHCRC16Table unk_00014;
+ /* 0x00014 */ struct MATHCRC16Table crcTable;
/* 0x00214 */ u8 dynamic_region[0x20000];
/* 0x20214 */ int unk_20214;
/* 0x20218 */ u8 unk_20218[8];
- /* 0x20220 */ int unk_20220;
+ /* 0x20220 */ u8 unk_20220[2];
+ /* 0x20222 */ u8 filler_20222[2];
/* 0x20224 */ struct SavArrayHeader arrayHeaders[36];
- /* 0x20464 */ struct SaveBlock2_Sub_20464 unk_20464[4];
+ /* 0x20464 */ struct SaveBlock2_Sub_20464 saveSlotSpecs[2];
+ /* 0x2047C */ u8 filler_2047C[0x28];
/* 0x204A4 */ int unk_204A4;
// TODO: finish this struct
}; // size: 0x204A8