2017-09-04 16:26:39 +00:00
|
|
|
#ifndef GUARD_LOAD_SAVE_H
|
|
|
|
#define GUARD_LOAD_SAVE_H
|
|
|
|
|
2018-04-29 12:21:59 +00:00
|
|
|
extern struct SaveBlock1 gSaveblock1;
|
2017-11-13 06:01:27 +00:00
|
|
|
extern struct SaveBlock2 gSaveblock2;
|
|
|
|
extern struct PokemonStorage gPokemonStorage;
|
2017-09-04 16:26:39 +00:00
|
|
|
|
2018-04-29 12:21:59 +00:00
|
|
|
extern bool32 gFlashMemoryPresent;
|
|
|
|
extern struct SaveBlock1 *gSaveBlock1Ptr;
|
|
|
|
extern struct SaveBlock2 *gSaveBlock2Ptr;
|
|
|
|
extern struct PokemonStorage *gPokemonStoragePtr;
|
|
|
|
|
|
|
|
void CheckForFlashMemory(void);
|
2017-09-07 17:45:32 +00:00
|
|
|
void ClearSav2(void);
|
|
|
|
void ClearSav1(void);
|
2018-04-29 12:21:59 +00:00
|
|
|
void SetSaveBlocksPointers(u16 offset);
|
2017-09-04 16:26:39 +00:00
|
|
|
void MoveSaveBlocks_ResetHeap(void);
|
2018-12-27 22:30:47 +00:00
|
|
|
u32 UseContinueGameWarp(void);
|
|
|
|
void ClearContinueGameWarpStatus(void);
|
|
|
|
void SetContinueGameWarpStatus(void);
|
|
|
|
void SetContinueGameWarpStatusToDynamicWarp(void);
|
|
|
|
void ClearContinueGameWarpStatus2(void);
|
2017-09-04 16:26:39 +00:00
|
|
|
void SavePlayerParty(void);
|
|
|
|
void LoadPlayerParty(void);
|
2019-11-21 03:55:44 +00:00
|
|
|
void SaveObjectEvents(void);
|
|
|
|
void LoadObjectEvents(void);
|
2017-09-04 16:26:39 +00:00
|
|
|
void SaveSerializedGame(void);
|
|
|
|
void LoadSerializedGame(void);
|
|
|
|
void LoadPlayerBag(void);
|
|
|
|
void SavePlayerBag(void);
|
2018-04-29 12:21:59 +00:00
|
|
|
void ApplyNewEncryptionKeyToHword(u16 *hWord, u32 newKey);
|
|
|
|
void ApplyNewEncryptionKeyToWord(u32 *word, u32 newKey);
|
2017-09-04 16:26:39 +00:00
|
|
|
|
|
|
|
#endif // GUARD_LOAD_SAVE_H
|