2019-03-22 19:16:26 +00:00
|
|
|
#ifndef GUARD_EREADER_HELPERS_H
|
|
|
|
#define GUARD_EREADER_HELPERS_H
|
|
|
|
|
2019-09-03 01:37:52 +00:00
|
|
|
#include "trainer_hill.h"
|
|
|
|
|
2019-09-03 18:35:01 +00:00
|
|
|
struct EReaderTrainerHillTrainer
|
2019-03-22 19:16:26 +00:00
|
|
|
{
|
2019-04-04 17:44:43 +00:00
|
|
|
u8 unk0;
|
2019-09-03 18:35:01 +00:00
|
|
|
struct TrainerHillTrainer unk4;
|
2019-09-04 19:42:53 +00:00
|
|
|
struct TrHillDisplay unk14C;
|
2019-09-03 01:37:52 +00:00
|
|
|
u32 checksum;
|
2019-09-03 18:35:01 +00:00
|
|
|
}; // size=0x274
|
2019-03-22 19:16:26 +00:00
|
|
|
|
2019-04-04 15:55:18 +00:00
|
|
|
struct EReaderTrainerHillSet
|
|
|
|
{
|
2019-09-03 01:37:52 +00:00
|
|
|
u8 count;
|
|
|
|
u8 id;
|
|
|
|
u16 dummy;
|
|
|
|
u32 checksum;
|
2019-09-03 18:35:01 +00:00
|
|
|
struct EReaderTrainerHillTrainer unk_8[6];
|
2019-04-04 15:55:18 +00:00
|
|
|
u8 unk_ec0[40];
|
2019-09-03 18:35:01 +00:00
|
|
|
}; // size = 0xf00
|
2019-04-04 15:55:18 +00:00
|
|
|
|
|
|
|
bool8 EReader_IsReceivedDataValid(struct EReaderTrainerHillSet *buffer);
|
2019-04-04 17:44:43 +00:00
|
|
|
bool32 TryWriteTrainerHill(struct EReaderTrainerHillSet *arg0);
|
2019-04-04 15:55:18 +00:00
|
|
|
bool32 ReadTrainerHillAndValidate(void);
|
2019-09-03 01:37:52 +00:00
|
|
|
int EReaderHandleTransfer(u8, u32, u32*, u32*);
|
2019-03-22 19:16:26 +00:00
|
|
|
void sub_81D3F9C(void);
|
|
|
|
void sub_81D3FAC(void);
|
2019-09-03 01:37:52 +00:00
|
|
|
void EReaderHelper_SaveRegsState(void);
|
|
|
|
void EReaderHelper_RestoreRegsState(void);
|
2019-03-22 19:16:26 +00:00
|
|
|
void sub_81D4238(void);
|
|
|
|
|
|
|
|
#endif // GUARD_EREADER_HELPERS_H
|