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-12-27 23:30:47 +01:00
|
|
|
u32 UseContinueGameWarp(void);
|
|
|
|
void ClearContinueGameWarpStatus(void);
|
|
|
|
void SetContinueGameWarpStatus(void);
|
|
|
|
void SetContinueGameWarpStatusToDynamicWarp(void);
|
|
|
|
void ClearContinueGameWarpStatus2(void);
|
2017-09-04 18:26:39 +02:00
|
|
|
void SavePlayerParty(void);
|
|
|
|
void LoadPlayerParty(void);
|
2019-11-21 04:55:44 +01:00
|
|
|
void SaveObjectEvents(void);
|
|
|
|
void LoadObjectEvents(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
|