2017-09-04 18:26:39 +02:00
|
|
|
#ifndef GUARD_LOAD_SAVE_H
|
|
|
|
#define GUARD_LOAD_SAVE_H
|
|
|
|
|
2018-04-29 14:21:59 +02:00
|
|
|
extern struct SaveBlock1 gSaveblock1;
|
2017-11-13 07:01:27 +01:00
|
|
|
extern struct SaveBlock2 gSaveblock2;
|
|
|
|
extern struct PokemonStorage gPokemonStorage;
|
2017-09-04 18:26:39 +02:00
|
|
|
|
2018-04-29 14:21:59 +02:00
|
|
|
extern bool32 gFlashMemoryPresent;
|
|
|
|
extern struct SaveBlock1 *gSaveBlock1Ptr;
|
|
|
|
extern struct SaveBlock2 *gSaveBlock2Ptr;
|
|
|
|
extern struct PokemonStorage *gPokemonStoragePtr;
|
|
|
|
|
|
|
|
void CheckForFlashMemory(void);
|
2017-09-07 19:45:32 +02:00
|
|
|
void ClearSav2(void);
|
|
|
|
void ClearSav1(void);
|
2018-04-29 14:21:59 +02:00
|
|
|
void SetSaveBlocksPointers(u16 offset);
|
2017-09-04 18:26:39 +02:00
|
|
|
void MoveSaveBlocks_ResetHeap(void);
|
2018-04-29 14:21:59 +02:00
|
|
|
u32 GetSecretBase2Field_9(void);
|
2017-09-04 18:26:39 +02:00
|
|
|
void ClearSecretBase2Field_9(void);
|
2018-10-21 02:53:41 +02:00
|
|
|
void SetSecretBase2Field_9(void);
|
2018-04-29 14:21:59 +02:00
|
|
|
void sub_8076D5C(void);
|
|
|
|
void sav2_gender2_inplace_and_xFE(void);
|
2017-09-04 18:26:39 +02:00
|
|
|
void SavePlayerParty(void);
|
|
|
|
void LoadPlayerParty(void);
|
2018-06-12 02:11:48 +02:00
|
|
|
void SaveEventObjects(void);
|
|
|
|
void LoadEventObjects(void);
|
2017-09-04 18:26:39 +02:00
|
|
|
void SaveSerializedGame(void);
|
|
|
|
void LoadSerializedGame(void);
|
|
|
|
void LoadPlayerBag(void);
|
|
|
|
void SavePlayerBag(void);
|
2018-04-29 14:21:59 +02:00
|
|
|
void ApplyNewEncryptionKeyToHword(u16 *hWord, u32 newKey);
|
|
|
|
void ApplyNewEncryptionKeyToWord(u32 *word, u32 newKey);
|
2017-09-04 18:26:39 +02:00
|
|
|
|
|
|
|
#endif // GUARD_LOAD_SAVE_H
|