Resolve externed prototypes in C files
This commit is contained in:
@@ -3,5 +3,6 @@
|
||||
|
||||
u32 GetBerryPowder(void);
|
||||
void SetBerryPowder(u32 *powder, u32 amount);
|
||||
void sub_815EE6C(u32 newKey);
|
||||
|
||||
#endif //GUARD_BERRY_POWDER_H
|
||||
|
||||
@@ -72,10 +72,12 @@ u16 BagGetQuantityByPocketPosition(u8 pocketId, u16 itemId);
|
||||
bool8 itemid_is_unique(u16 itemId);
|
||||
void BagPocketCompaction(struct ItemSlot * slots, u8 capacity);
|
||||
u16 GetPcItemQuantity(u16 *);
|
||||
void SetBagPocketsPointers(void);
|
||||
|
||||
void ItemPcCompaction(void);
|
||||
void RemoveItemFromPC(u16 itemId, u16 quantity);
|
||||
void SortAndCompactBagPocket(struct BagPocket * pocket);
|
||||
u8 CountItemsInPC(void);
|
||||
void ApplyNewEncryptionKeyToBagItems_(u32 newKey);
|
||||
|
||||
#endif // GUARD_ITEM_H
|
||||
|
||||
@@ -143,5 +143,7 @@ bool32 sub_8058318(void);
|
||||
void CB2_ReturnToStartMenu(void);
|
||||
void CB2_WhiteOut(void);
|
||||
void c2_8056854(void);
|
||||
void sub_8054F38(u32 newKey);
|
||||
void sub_8055778(int);
|
||||
|
||||
#endif //GUARD_OVERWORLD_H
|
||||
|
||||
@@ -46,6 +46,7 @@ void sub_811231C(void);
|
||||
void sub_81139BC(void);
|
||||
void *QuestLogGetFlagOrVarPtr(bool8 isFlag, u16 idx);
|
||||
void QuestLogSetFlagOrVar(bool8 isFlag, u16 idx, u16 value);
|
||||
void sub_8110840(void *oldSave);
|
||||
|
||||
extern u8 gUnknown_203ADFA;
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef GUARD_SAVE_FAILED_SCREEN_H
|
||||
#define GUARD_SAVE_FAILED_SCREEN_H
|
||||
|
||||
extern void DoSaveFailedScreen(u8 saveType); // save_failed_screen
|
||||
|
||||
#endif //GUARD_SAVE_FAILED_SCREEN_H
|
||||
+4
-7
@@ -7,13 +7,10 @@
|
||||
#include "malloc.h"
|
||||
#include "item.h"
|
||||
#include "save_location.h"
|
||||
|
||||
extern void SetBagPocketsPointers(void);
|
||||
extern void sub_8110840(void *oldSave);
|
||||
extern void sub_8055778(int);
|
||||
extern void sub_8054F38(u32 newKey);
|
||||
extern void ApplyNewEncryptionKeyToBagItems_(u32 newKey);
|
||||
extern void sub_815EE6C(u32 newKey);
|
||||
#include "berry_powder.h"
|
||||
#include "item.h"
|
||||
#include "overworld.h"
|
||||
#include "quest_log.h"
|
||||
|
||||
#define SAVEBLOCK_MOVE_RANGE 128
|
||||
|
||||
|
||||
+2
-7
@@ -6,6 +6,8 @@
|
||||
#include "load_save.h"
|
||||
#include "task.h"
|
||||
#include "link.h"
|
||||
#include "save_failed_screen.h"
|
||||
#include "fieldmap.h"
|
||||
#include "gba/flash_internal.h"
|
||||
|
||||
#define FILE_SIGNATURE 0x08012025 // signature value to determine if a sector is in use
|
||||
@@ -66,13 +68,6 @@ const struct SaveSectionOffsets gSaveSectionOffsets[] =
|
||||
SAVEBLOCK_CHUNK(struct PokemonStorage, 8)
|
||||
};
|
||||
|
||||
extern void DoSaveFailedScreen(u8 saveType); // save_failed_screen
|
||||
extern void sub_800AB9C(void); // link
|
||||
extern bool8 IsLinkTaskFinished(void); // link
|
||||
extern void save_serialize_map(void); // fieldmap
|
||||
extern void SetContinueGameWarpStatusToDynamicWarp(void); // load_save
|
||||
extern void ClearContinueGameWarpStatus2(void); // load_save
|
||||
|
||||
// Sector num to begin writing save data. Sectors are rotated each time the game is saved. (possibly to avoid wear on flash memory?)
|
||||
u16 gFirstSaveSector;
|
||||
u32 gPrevSaveCounter;
|
||||
|
||||
Reference in New Issue
Block a user