Decompile/port new_game
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#ifndef GUARD_BATTLE_RECORDS_H
|
||||
#define GUARD_BATTLE_RECORDS_H
|
||||
|
||||
extern u8 gRecordsWindowId;
|
||||
|
||||
void ClearPlayerLinkBattleRecords(void);
|
||||
void InitLinkBattleRecords(void);
|
||||
void UpdatePlayerLinkBattleRecords(s32 battlerId);
|
||||
void ShowLinkBattleRecords(void);
|
||||
void RemoveRecordsWindow(void);
|
||||
void ShowTrainerHillRecords(void);
|
||||
|
||||
#endif // GUARD_BATTLE_RECORDS_H
|
||||
@@ -62,6 +62,7 @@ void FieldObjectInteractionPickBerryTree(void);
|
||||
void FieldObjectInteractionRemoveBerryTree(void);
|
||||
u8 PlayerHasBerries(void);
|
||||
void ResetBerryTreeSparkleFlags(void);
|
||||
void sub_809C794(void);
|
||||
const struct Berry * sub_809C8A0(u8 berryIdx);
|
||||
|
||||
extern const struct Berry gBerries[];
|
||||
|
||||
@@ -19,5 +19,6 @@ void BerryPouch_SetExitCallback(void (*exitCallback)(void));
|
||||
void InitBerryPouch(u8 type, void (*savedCallback)(void), u8 allowSelect);
|
||||
void DisplayItemMessageInBerryPouch(u8 taskId, u8 fontId, const u8 * str, TaskFunc followUpFunc);
|
||||
void Task_BerryPouch_DestroyDialogueWindowAndRefreshListMenu(u8 taskId);
|
||||
void BerryPouch_CursorResetToTop(void);
|
||||
|
||||
#endif //GUARD_BERRY_POUCH_H
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
#define GUARD_BERRY_POWDER_H
|
||||
|
||||
u32 GetBerryPowder(void);
|
||||
void SetBerryPowder(u32 *powder, u32 amount);
|
||||
|
||||
#endif //GUARD_BERRY_POWDER_H
|
||||
|
||||
@@ -38,6 +38,7 @@ void InitializeEasyChatWordArray(u16 *words, u16 length);
|
||||
void ConvertEasyChatWordsToString(u8 *dest, const u16 *src, u16 length1, u16 length2);
|
||||
bool8 ECWord_CheckIfOutsideOfValidRange(u16 word);
|
||||
void sub_80BDE28(void);
|
||||
void sub_80BDD34(void);
|
||||
void EnableRareWord(u8);
|
||||
|
||||
#endif // GUARD_EASYCHAT_H
|
||||
|
||||
@@ -37,6 +37,8 @@ void sub_806E6FC(void);
|
||||
void sub_806E2D0(void);
|
||||
void sub_806E370(void);
|
||||
bool32 sub_806E25C(void);
|
||||
void sub_806E0D0(void);
|
||||
void sub_806E190(void);
|
||||
|
||||
extern u16 gSpecialVar_0x8000;
|
||||
extern u16 gSpecialVar_0x8001;
|
||||
|
||||
+8
-2
@@ -227,14 +227,20 @@ struct SaveBlock2
|
||||
/*0x098*/ struct Time localTimeOffset;
|
||||
/*0x0A0*/ struct Time lastBerryTreeUpdate;
|
||||
/*0x0A8*/ u32 field_A8;
|
||||
/*0x0AC*/ u8 filler_AC[0x3F4];
|
||||
/*0x0AC*/ u8 field_AC;
|
||||
/*0x0AD*/ u8 field_AD;
|
||||
/*0x0AE*/ u8 filler_AE[0x2];
|
||||
/*0x0B0*/ u8 field_B0;
|
||||
/*0x0B1*/ u8 filler_B1[0x3EF];
|
||||
/*0x4A0*/ u32 unk_4A0[0x2F];
|
||||
/*0x55c*/ struct UnkSaveBlock2Substruct_55C unk_55C;
|
||||
/*0x574*/ u8 filler_574[0x324];
|
||||
/*0x898*/ u16 mapView[0x100];
|
||||
/*0xA98*/ struct LinkBattleRecords linkBattleRecords;
|
||||
/*0xAF0*/ struct BerryCrush berryCrush;
|
||||
/*0xB00*/ u8 filler_B00[0x420];
|
||||
/*0xB00*/ struct PokemonJumpResults pokeJump;
|
||||
/*0xB10*/ struct BerryPickingResults berryPick;
|
||||
/*0xB20*/ u8 filler_B20[0x400];
|
||||
/*0xF20*/ u32 encryptionKey;
|
||||
};
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ extern u16 gSpecialVar_ItemId;
|
||||
void sub_81AAC50(void);
|
||||
void sub_81AAC70(void);
|
||||
void sub_8108CF0(void);
|
||||
void sub_81089BC(void);
|
||||
void sub_810B108(u8);
|
||||
void ReturnToBagFromKeyItem(void);
|
||||
void ItemMenu_MoveItemSlotToNewPositionInArray(struct ItemSlot * slots, int pos1, int pos2);
|
||||
|
||||
@@ -67,6 +67,7 @@ void SetVBlankCounter1Ptr(u32 *ptr);
|
||||
void DisableVBlankCounter1(void);
|
||||
void StartTimer1(void);
|
||||
void SeedRngAndSetTrainerId(void);
|
||||
u16 GetGeneratedTrainerIdLower(void);
|
||||
|
||||
extern const char RomHeaderGameCode[4];
|
||||
extern const char RomHeaderSoftwareVersion;
|
||||
|
||||
@@ -66,5 +66,6 @@ void MENews_RemoveScrollIndicatorArrowPair(void);
|
||||
bool32 WonderNews_Test_Unk_02(void);
|
||||
bool32 WonderCard_Test_Unk_08_6(void);
|
||||
u32 MENews_GetInput(u16 input);
|
||||
void sub_8143D24(void);
|
||||
|
||||
#endif //GUARD_MEVENT_H
|
||||
|
||||
+4
-10
@@ -1,19 +1,13 @@
|
||||
#ifndef GUARD_NEW_GAME_H
|
||||
#define GUARD_NEW_GAME_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
void WriteUnalignedWord(u32 var, u8 *dataPtr);
|
||||
void SetTrainerId(u32 trainerId, u8 *dst);
|
||||
u32 ReadUnalignedWord(u8* dataPtr);
|
||||
void CopyUnalignedWord(u8 *copyTo, u8 *copyFrom);
|
||||
void InitPlayerTrainerId(void);
|
||||
void SetDefaultOptions(void);
|
||||
void ClearPokedexFlags(void);
|
||||
void WarpToTruck(void);
|
||||
void CopyTrainerId(u8 *dst, u8 *src);
|
||||
void NewGameInitData(void);
|
||||
void ResetMenuAndMonGlobals(void);
|
||||
void Sav2_ClearSetDefault(void);
|
||||
void ResetMiniGamesResults(void);
|
||||
void sub_808447C(void);
|
||||
void Sav2_ClearSetDefault(void);
|
||||
void ResetMenuAndMonGlobals(void);
|
||||
|
||||
#endif // GUARD_NEW_GAME_H
|
||||
|
||||
+2
-1
@@ -49,7 +49,7 @@ void IncrementGameStat(u8 index);
|
||||
void Overworld_SetMapObjTemplateCoords(u8, s16, s16);
|
||||
void Overworld_SetMapObjTemplateMovementType(u8, u8);
|
||||
|
||||
void Overworld_SetWarpDestination(s8 mapGroup, s8 mapNum, s8 warpId, s8 x, s8 y);
|
||||
void SetWarpDestination(s8 mapGroup, s8 mapNum, s8 warpId, s8 x, s8 y);
|
||||
|
||||
void saved_warp2_set(int unused, s8 mapGroup, s8 mapNum, s8 warpId);
|
||||
void SetDynamicWarpWithCoords(int unused, s8 mapGroup, s8 mapNum, s8 warpId, s8 x, s8 y);
|
||||
@@ -137,6 +137,7 @@ u8 get_map_light_from_warp0(void);
|
||||
const struct MapHeader *warp1_get_mapheader(void);
|
||||
void sub_8055F88(void);
|
||||
void sub_8056788(void);
|
||||
void sub_8054E68(void);
|
||||
|
||||
void Overworld_CreditsMainCB(void);
|
||||
bool32 Overworld_DoScrollSceneForCredits(u8 *, const struct CreditsOverworldCmd *, u8);
|
||||
|
||||
@@ -21,5 +21,6 @@ struct PlayerPC_Unk_203AAC4
|
||||
// Exported ROM declarations
|
||||
|
||||
void sub_816B060(u8 taskId);
|
||||
void sub_80EB658(void);
|
||||
|
||||
#endif //GUARD_PLAYER_PC_H
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef GUARD_POKEMON_JUMP_H
|
||||
#define GUARD_POKEMON_JUMP_H
|
||||
|
||||
#include "main.h"
|
||||
|
||||
void sub_802A9A8(u16 monId, MainCallback callback);
|
||||
bool32 sub_802C908(u16 species);
|
||||
void sub_802C920(void);
|
||||
void ResetPokeJumpResults(void);
|
||||
void sub_802E3C4(void);
|
||||
void sub_802EB24(s16 tileTag, s16 palTag, s16 x, s16 y, u8 subpriority);
|
||||
bool32 sub_802EB84(void);
|
||||
|
||||
#endif // GUARD_POKEMON_JUMP_H
|
||||
@@ -11,6 +11,9 @@ void InitLotadSizeRecord(void);
|
||||
void GetLotadSizeRecordInfo(void);
|
||||
void CompareLotadSize(void);
|
||||
|
||||
void sub_80A0904(void);
|
||||
void sub_80A0958(void);
|
||||
|
||||
void GiveGiftRibbonToParty(u8 index, u8 ribbonId);
|
||||
|
||||
#endif // GUARD_POKEMON_SIZE_RECORD_H
|
||||
|
||||
@@ -14,6 +14,7 @@ u32 GetBoxMonDataFromAnyBox(u8 boxId, u8 monPosition, u32 request);
|
||||
void sub_808BCB4(u8 boxId, u8 monPosition);
|
||||
u8 * GetBoxNamePtr(u8 boxId);
|
||||
void sub_808CE60(void);
|
||||
void sub_808C7E0(void);
|
||||
u8 StorageGetCurrentBox(void);
|
||||
|
||||
#endif // GUARD_POKEMON_STORAGE_SYSTEM_H
|
||||
|
||||
@@ -33,6 +33,8 @@ u8 sub_8112EB4(void);
|
||||
void sub_8113018(const u8 * text, u8 mode);
|
||||
void MapNamePopupWindowIdSetDummy(void);
|
||||
void sub_8111CF0(void);
|
||||
void sub_811089C(void);
|
||||
void sub_8113044(void);
|
||||
|
||||
extern u8 gUnknown_203ADFA;
|
||||
|
||||
|
||||
@@ -5,5 +5,7 @@ void PrintTrainerTowerRecords(void);
|
||||
void InitTrainerTowerBattleStruct(void);
|
||||
void FreeTrainerTowerBattleStruct(void);
|
||||
u8 GetTrainerTowerTrainerFrontSpriteId(void);
|
||||
void sub_815D838(void);
|
||||
void sub_815EE0C(void);
|
||||
|
||||
#endif //GUARD_TRAINER_TOWER_H
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#ifndef GUARD_UNION_ROOM_CHAT_H
|
||||
#define GUARD_UNION_ROOM_CHAT_H
|
||||
|
||||
void sub_801DD98(void);
|
||||
void copy_strings_to_sav1(void);
|
||||
|
||||
#endif // GUARD_UNION_ROOM_CHAT_H
|
||||
@@ -45,5 +45,6 @@ bool8 UpdateRepelCounter(void);
|
||||
void sub_8082740(u8);
|
||||
u8 GetUnownLetterByPersonalityLoByte(u32 personality);
|
||||
bool8 SweetScentWildEncounter(void);
|
||||
void sub_8083214(u16 randVal);
|
||||
|
||||
#endif // GUARD_WILD_ENCOUNTER_H
|
||||
|
||||
Reference in New Issue
Block a user