Finish and polish new_game.c
Only one function is left undocumented. I tried to go into the assembly to at least name it, but it clears fields in the save block that aren't even documented yet.
This commit is contained in:
@@ -25,5 +25,7 @@ void UpdateFrontierManiac(u16 a0);
|
||||
void UpdateFrontierGambler(u16 a0);
|
||||
void ResetCyclingRoadChallengeData(void);
|
||||
bool8 warp0_in_pokecenter(void);
|
||||
void ResetFanClub(void);
|
||||
|
||||
|
||||
#endif // GUARD_FIELD_SPECIALS_H
|
||||
|
||||
@@ -376,7 +376,7 @@ struct BattleFrontier
|
||||
/*0xEBC*/ u32 battlesCount;
|
||||
/*0xEC0*/ u16 field_EC0[16];
|
||||
/*0xEE0*/ u8 field_EE0;
|
||||
/*0xEE1*/ u8 field_EE1[2][PLAYER_NAME_LENGTH + 1];
|
||||
/*0xEE1*/ u8 opponentName[2][PLAYER_NAME_LENGTH + 1];
|
||||
/*0xEF1*/ u8 field_EF1[2][4];
|
||||
/*0xEF9*/ u8 field_EF9_0:7;
|
||||
/*0xEF9*/ u8 field_EF9_1:1;
|
||||
@@ -446,7 +446,7 @@ struct SaveBlock2
|
||||
/*0x90*/ u8 filler_90[0x8];
|
||||
/*0x98*/ struct Time localTimeOffset;
|
||||
/*0xA0*/ struct Time lastBerryTreeUpdate;
|
||||
/*0xA8*/ u32 field_A8;
|
||||
/*0xA8*/ u32 unusedFlagField; // Written to, but never read.
|
||||
/*0xAC*/ u32 encryptionKey;
|
||||
/*0xB0*/ struct PlayersApprentice playerApprentice;
|
||||
/*0xDC*/ struct Apprentice apprentices[4]; // From record mixing.
|
||||
@@ -787,7 +787,7 @@ struct WaldaPhrase
|
||||
bool8 patternUnlocked;
|
||||
};
|
||||
|
||||
struct UnkSaveSubstruct_3b98
|
||||
struct TrainerNameRecord
|
||||
{
|
||||
u32 trainerId;
|
||||
u8 trainerName[PLAYER_NAME_LENGTH + 1];
|
||||
@@ -891,7 +891,7 @@ struct SaveBlock1
|
||||
/*0x3B14*/ struct RecordMixingGift recordMixingGift;
|
||||
/*0x3B24*/ u8 seen2[DEX_FLAGS_NO];
|
||||
/*0x3B58*/ LilycoveLady lilycoveLady;
|
||||
/*0x3B98*/ struct UnkSaveSubstruct_3b98 unk_3B98[20];
|
||||
/*0x3B98*/ struct TrainerNameRecord trainerNameRecords[20];
|
||||
/*0x3C88*/ u8 filler_3C88[0xDC];
|
||||
/*0x3D64*/ struct SaveTrainerHill trainerHill;
|
||||
/*0x3D70*/ struct WaldaPhrase waldaPhrase;
|
||||
|
||||
@@ -79,5 +79,7 @@ bool8 UseRegisteredKeyItemOnField(void);
|
||||
void CB2_GoToSellMenu(void);
|
||||
void GoToBagMenu(u8 bagMenuType, u8 pocketId, void ( *postExitMenuMainCallback2)());
|
||||
void DoWallyTutorialBagMenu(void);
|
||||
void ResetBagScrollPositions(void);
|
||||
|
||||
|
||||
#endif //GUARD_item_menu_H
|
||||
|
||||
@@ -305,7 +305,7 @@ void sub_8009FAC(void);
|
||||
bool8 sub_800A4D8(u8 a0);
|
||||
u8 sub_800A9D8(void);
|
||||
u8 sub_800A0C8(s32, s32);
|
||||
u16 *sub_801B058(void);
|
||||
u16 *GetSaveBlock1Field3564(void);
|
||||
u8 sub_800A9A8(void);
|
||||
void sub_800AD10(void);
|
||||
void sub_800AB18(void);
|
||||
|
||||
@@ -213,6 +213,7 @@ extern struct UnkRfuStruct_2 gUnknown_03005000;
|
||||
extern u8 gWirelessStatusIndicatorSpriteId;
|
||||
|
||||
// Exported ROM declarations
|
||||
void WipeTrainerNameRecords(void);
|
||||
u32 sub_800BEC0(void);
|
||||
void sub_800E700(void);
|
||||
void sub_800EDD4(void);
|
||||
@@ -263,7 +264,7 @@ void sub_800E084(void);
|
||||
void sub_801103C(void);
|
||||
void sub_8011C5C(void);
|
||||
void sub_80106D4(void);
|
||||
void sub_800E3A8(void);
|
||||
void RecordMixTrainerNames(void);
|
||||
void sub_800ED10(void);
|
||||
void sub_800ED28(void);
|
||||
void sub_8011090(u8 a0, u32 a1, u32 a2);
|
||||
|
||||
@@ -68,5 +68,7 @@ void ClearPokemonCrySongs(void);
|
||||
void RestoreSerialTimer3IntrHandlers(void);
|
||||
void StartTimer1(void);
|
||||
void SeedRngAndSetTrainerId(void);
|
||||
extern u16 GetGeneratedTrainerIdLower(void);
|
||||
|
||||
|
||||
#endif // GUARD_MAIN_H
|
||||
|
||||
@@ -85,5 +85,7 @@ extern const struct MenuAction gMailboxMailOptions[];
|
||||
void ReshowPlayerPC(u8 taskId);
|
||||
void sub_816B31C(void);
|
||||
void Mailbox_ReturnToMailListAfterDeposit(void);
|
||||
void NewGameInitPCItems(void);
|
||||
|
||||
|
||||
#endif //GUARD_PLAYER_PC_H
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef GUARD_POKEDEX_H
|
||||
#define GUARD_POKEDEX_H
|
||||
|
||||
extern u8 gUnknown_030060B0;
|
||||
extern u8 gUnusedU8;
|
||||
extern void (*gUnknown_030060B4)(void);
|
||||
|
||||
#define HOENN_DEX_COUNT 202
|
||||
@@ -42,5 +42,6 @@ u8 CreateDexDisplayMonDataTask(u16 dexNum, u32 trainerId, u32 personality);
|
||||
s8 GetSetPokedexFlag(u16 nationalNum, u8 caseId);
|
||||
u16 CreateMonSpriteFromNationalDexNumber(u16, s16, s16, u16);
|
||||
bool16 HasAllHoennMons(void);
|
||||
void ResetPokedexScrollPositions(void);
|
||||
|
||||
#endif // GUARD_POKEDEX_H
|
||||
|
||||
@@ -24,6 +24,7 @@ void sub_80EBB28(void);
|
||||
void WarpIntoSecretBase(const struct MapPosition *position, const struct MapEvents *events);
|
||||
bool8 sub_80E909C(void);
|
||||
void sub_80EB218(void);
|
||||
void ResetSecretBases(void);
|
||||
|
||||
// SetCurrentSecretBaseFromPosition
|
||||
void sub_80E9608(const struct MapPosition *position, const struct MapEvents *events);
|
||||
@@ -33,4 +34,5 @@ void sub_80E8BC8(void);
|
||||
void sub_80E8D4C(void);
|
||||
void EnableBothScriptContexts(void);
|
||||
|
||||
|
||||
#endif //GUARD_SECRET_BASE_H
|
||||
|
||||
@@ -61,5 +61,6 @@ void ContestLiveUpdates_BeforeInterview_2(u8 a0);
|
||||
void ContestLiveUpdates_BeforeInterview_3(u8 a0);
|
||||
void ContestLiveUpdates_BeforeInterview_4(u16 a0);
|
||||
void ContestLiveUpdates_BeforeInterview_5(u8 a0, u8 a1);
|
||||
void ResetGabbyAndTy(void);
|
||||
|
||||
#endif //GUARD_TV_H
|
||||
|
||||
Reference in New Issue
Block a user