summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-05-03 08:42:44 -0700
committerGitHub <noreply@github.com>2018-05-03 08:42:44 -0700
commitcdb5e9e3143b2f1086d8bd4f02a76186c164d02a (patch)
treebb3fc1e833b039b93548dd88971fa8edfbe97554 /include/global.h
parent9dc867a91c06c7e7a72ad24343726051cd49d448 (diff)
parentb80fb98d9a316d2f8f0400b398fa0bc9974ac085 (diff)
Merge pull request #242 from DizzyEggg/decompile_battle_records
Decompile battle records
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/global.h b/include/global.h
index b0c3bed4a..7a01c4175 100644
--- a/include/global.h
+++ b/include/global.h
@@ -489,6 +489,8 @@ struct RecordMixing_UnknownStruct
u16 unk74[0x2];
};
+#define LINK_B_RECORDS_COUNT 5
+
struct LinkBattleRecord
{
u8 name[8];
@@ -498,6 +500,12 @@ struct LinkBattleRecord
u16 draws;
};
+struct LinkBattleRecords
+{
+ struct LinkBattleRecord entries[LINK_B_RECORDS_COUNT];
+ u8 languages[LINK_B_RECORDS_COUNT];
+};
+
struct RecordMixingGiftData
{
u8 unk0;
@@ -703,9 +711,7 @@ struct SaveBlock1
/*0x2e64*/ struct EasyChatPair easyChatPairs[5]; //Dewford trend [0] and some other stuff
/*0x2e90*/ struct ContestWinner contestWinners[13]; // 0 - 5 used in contest hall, 6 - 7 unused?, 8 - 12 museum
/*0x3030*/ struct DayCare daycare;
- /*0x3150*/ struct LinkBattleRecord linkBattleRecords[5];
- /*0x31A0*/ u8 unk_31A0;
- /*0x31A1*/ u8 filler_31A1[7];
+ /*0x3150*/ struct LinkBattleRecords linkBattleRecords;
/*0x31A8*/ u8 giftRibbons[52];
/*0x31DC*/ struct Roamer roamer;
/*0x31F8*/ struct EnigmaBerry enigmaBerry;