mirror of
https://github.com/pret/pokeheartgold.git
synced 2026-06-02 21:54:45 -05:00
Up to Battle Random functions start cleaning up encounter.c fix build fix build again remove two files from bad rebase switch fully to battle type constants rename TRAINER to Trainer few more funcs finish cleanup address some review comments de-capitalise std_script
53 lines
1.7 KiB
C
53 lines
1.7 KiB
C
#ifndef POKEHEARTGOLD_SAVE_ARRAYS_H
|
|
#define POKEHEARTGOLD_SAVE_ARRAYS_H
|
|
|
|
#include "save.h"
|
|
#include "unk_0202E41C.h"
|
|
#include "pokemon_storage_system.h"
|
|
#include "mystery_gift.h"
|
|
#include "unk_0202EB30.h"
|
|
#include "unk_02030A98.h"
|
|
#include "hall_of_fame.h"
|
|
|
|
typedef u32 (*SAVESIZEFN)(void);
|
|
typedef void (*SAVEINITFN)(void *);
|
|
|
|
struct SaveChunkHeader {
|
|
int id;
|
|
u32 block;
|
|
SAVESIZEFN sizeFunc;
|
|
SAVEINITFN initFunc;
|
|
};
|
|
|
|
struct ExtraSaveChunkHeader {
|
|
int id;
|
|
u32 sector;
|
|
SAVESIZEFN sizeFunc;
|
|
SAVEINITFN initFunc;
|
|
};
|
|
|
|
extern const struct SaveChunkHeader gSaveChunkHeaders[];
|
|
extern const int gNumSaveChunkHeaders;
|
|
|
|
extern const struct ExtraSaveChunkHeader gExtraSaveChunkHeaders[];
|
|
extern const int gNumExtraSaveChunkHeaders;
|
|
|
|
struct UnkStruct_0202E474 *sub_020270C4(SaveData *saveData);
|
|
PCStorage *SaveArray_PCStorage_Get(SaveData *saveData);
|
|
MYSTERY_GIFT_SAVE *Save_MysteryGift_Get(SaveData *saveData);
|
|
struct MigratedPokemonSav *Save_MigratedPokemon_Get(SaveData *saveData);
|
|
HALL_OF_FAME *LoadHallOfFame(SaveData *saveData, HeapID heapId, int *ret_p);
|
|
int SaveHallOfFame(SaveData *saveData, HALL_OF_FAME *hallOfFame);
|
|
struct UnkStruct_0202FBCC *sub_0202711C(SaveData *saveData, HeapID heapId, int *ret_p, int idx);
|
|
int sub_02027134(SaveData *saveData, struct UnkStruct_0202FBCC *data, int idx);
|
|
struct UnkStruct_02030A98 *sub_02027144(SaveData *saveData, HeapID heapId, int *ret_p);
|
|
int sub_02027158(SaveData *saveData, struct UnkStruct_02030A98 *data);
|
|
u32 PCStorage_GetSizeOfBox(void);
|
|
u32 PCStorage_GetNumBoxes(void);
|
|
u32 Save_GetPCBoxModifiedFlags(SaveData *saveData);
|
|
void Save_ResetPCBoxModifiedFlags(SaveData *saveData);
|
|
void Save_SetAllPCBoxesModified(SaveData *saveData);
|
|
void sub_020271A0(SaveData *saveData);
|
|
|
|
#endif //POKEHEARTGOLD_SAVE_ARRAYS_H
|