sovereignx/include/ereader_helpers.h

53 lines
1,012 B
C
Raw Normal View History

#ifndef GUARD_EREADER_HELPERS_H
#define GUARD_EREADER_HELPERS_H
2019-09-03 02:37:52 +01:00
#include "trainer_hill.h"
struct Unk81D38FC
{
2019-04-04 18:44:43 +01:00
u8 unk0;
u8 filler_1[3];
u8 unk4[0x148];
u8 unk14C[0x124];
2019-09-03 02:37:52 +01:00
u32 checksum;
};
2019-04-04 16:55:18 +01:00
struct EReaderTrainerHillSet
{
2019-09-03 02:37:52 +01:00
u8 count;
u8 id;
u16 dummy;
u32 checksum;
2019-04-04 16:55:18 +01:00
struct Unk81D38FC unk_8[6];
u8 unk_ec0[40];
};
struct Unk81D3998Sub
{
u8 unk_000[4];
u8 unk_004[0x148];
u8 unk_14C[0x148];
u8 unk_294[0x124];
};
struct Unk81D3998
{
u8 unk_000;
u8 unk_001;
u8 unk_002;
int checksum;
struct Unk81D3998Sub unk_008[4];
};
bool8 EReader_IsReceivedDataValid(struct EReaderTrainerHillSet *buffer);
2019-04-04 18:44:43 +01:00
bool32 TryWriteTrainerHill(struct EReaderTrainerHillSet *arg0);
2019-04-04 16:55:18 +01:00
bool32 ReadTrainerHillAndValidate(void);
2019-09-03 02:37:52 +01:00
int EReaderHandleTransfer(u8, u32, u32*, u32*);
void sub_81D3F9C(void);
void sub_81D3FAC(void);
2019-09-03 02:37:52 +01:00
void EReaderHelper_SaveRegsState(void);
void EReaderHelper_RestoreRegsState(void);
void sub_81D4238(void);
#endif // GUARD_EREADER_HELPERS_H