diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-13 08:24:20 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-13 08:24:20 -0400 |
commit | dd47776b7c311afdbfbb123485ecf2bf695a3c04 (patch) | |
tree | 3adad4e488d4e34a69f10f8fa2a4c04111c9b3aa /include/save_block_2.h | |
parent | 692b76fd27bf0b74a3fe871864c5d77387c05618 (diff) |
Decompile coins.s
Diffstat (limited to 'include/save_block_2.h')
-rw-r--r-- | include/save_block_2.h | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/include/save_block_2.h b/include/save_block_2.h index e969bde7..fe052b1d 100644 --- a/include/save_block_2.h +++ b/include/save_block_2.h @@ -2,13 +2,7 @@ #define POKEDIAMOND_SAVE_BLOCK_2_H #include "MATH_crc.h" - -struct Options { - u16 unk0_0:4; - u16 unk0_4:2; - u16 unk0_6:10; - u8 padding[2]; // TODO: finish me -}; +#include "player_data.h" struct SavArrayHeader { @@ -19,31 +13,6 @@ struct SavArrayHeader u16 field_E; }; -struct PlayerData -{ - /* 0x00 */ u16 playerName[OT_NAME_LENGTH + 1]; - /* 0x10 */ u32 playerId; - /* 0x14 */ u32 money; - /* 0x18 */ u8 gender; - /* 0x19 */ u8 language; - /* 0x1A */ u8 badges; - /* 0x1B */ u8 avatar; - /* 0x1C */ u8 field_1C; - /* 0x1D */ u8 field_1D_0:1; - u8 field_1D_1:1; - u8 field_1D_pad:6; - /* 0x1E */ u8 padding_1E[2]; -}; - -struct PlayerDataSav -{ - struct Options options; - struct PlayerData data; - u16 field_24; - u16 field_26; - u32 field_28; -}; - struct SaveBlock2_Sub_20464 { u8 unk_0; u8 padding[3]; @@ -73,11 +42,6 @@ struct SaveBlock2 // TODO: finish this struct }; // size: 0x204A8 -struct String * PlayerData_GetPlayerName_NewString(struct PlayerData *, u32 heap_id); -u32 PlayerData_GetTrainerID(struct PlayerData *); -u32 PlayerData_GetTrainerGender(struct PlayerData *); void * SavArray_get(struct SaveBlock2 *, int); -struct Options * LoadPlayerDataAddress(struct SaveBlock2 *); - #endif //POKEDIAMOND_SAVE_BLOCK_2_H |