finished save_location

This commit is contained in:
jiangzhengwenjz
2019-06-28 05:55:49 +08:00
parent be2010e0db
commit 8e8fe3bf44
8 changed files with 127 additions and 247 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ struct SaveBlock2
{
/*0x000*/ u8 playerName[PLAYER_NAME_LENGTH];
/*0x008*/ u8 playerGender; // MALE, FEMALE
/*0x009*/ u8 specialSaveWarp;
/*0x009*/ u8 specialSaveWarpFlags;
/*0x00A*/ u8 playerTrainerId[4];
/*0x00E*/ u16 playTimeHours;
/*0x010*/ u8 playTimeMinutes;
+8 -5
View File
@@ -1,12 +1,15 @@
#ifndef GUARD_SAVE_LOCATION_H
#define GUARD_SAVE_LOCATION_H
#include "global.h"
// specialSaveWarp flags
#define CONTINUE_GAME_WARP (1 << 0)
#define POKECENTER_SAVEWARP (1 << 1)
#define LOBBY_SAVEWARP (1 << 2)
#define UNK_SPECIAL_SAVE_WARP_FLAG_3 (1 << 3)
bool32 sub_81AFCEC(void);
void TrySetMapSaveWarpStatus(void);
void sub_81AFDA0(void);
void sub_81AFDD0(void);
bool32 IsCurMapPokeCenter(void);
void sub_810B810(void);
void sub_810B82C(void);
#endif // GUARD_SAVE_LOCATION_H
#endif // GUARD_SAVE_LOCATION_H