pokeemerald/include/load_save.h

36 lines
1.1 KiB
C
Raw Normal View History

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-04-29 12:21:59 +00:00
u32 GetSecretBase2Field_9(void);
2017-09-04 16:26:39 +00:00
void ClearSecretBase2Field_9(void);
2018-04-29 12:21:59 +00:00
void sub_8076D48(void);
void sub_8076D5C(void);
void sav2_gender2_inplace_and_xFE(void);
2017-09-04 16:26:39 +00:00
void SavePlayerParty(void);
void LoadPlayerParty(void);
void SaveEventObjects(void);
void LoadEventObjects(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);
void ApplyNewEncryptionKeyToAllEncryptedData(u32 encryptionKey);
2017-09-04 16:26:39 +00:00
#endif // GUARD_LOAD_SAVE_H