Merge branch 'master' into fldeff
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef GUARD_BLIT_H
|
||||
#define GUARD_BLIT_H
|
||||
|
||||
struct Bitmap
|
||||
{
|
||||
u8 *pixels;
|
||||
u32 width:16;
|
||||
u32 height:16;
|
||||
};
|
||||
|
||||
void BlitBitmapRect4BitWithoutColorKey(const struct Bitmap *src, struct Bitmap *dst, u16 srcX, u16 srcY, u16 dstX, u16 dstY, u16 width, u16 height);
|
||||
void BlitBitmapRect4Bit(const struct Bitmap *src, struct Bitmap *dst, u16 srcX, u16 srcY, u16 dstX, u16 dstY, u16 width, u16 height, u8 colorKey);
|
||||
void FillBitmapRect4Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 height, u8 fillValue);
|
||||
void BlitBitmapRect4BitTo8Bit(const struct Bitmap *src, struct Bitmap *dst, u16 srcX, u16 srcY, u16 dstX, u16 dstY, u16 width, u16 height, u8 colorKey, u8 paletteOffset);
|
||||
void FillBitmapRect8Bit(struct Bitmap *surface, u16 x, u16 y, u16 width, u16 height, u8 fillValue);
|
||||
|
||||
#endif // GUARD_BLIT_H
|
||||
@@ -9,4 +9,6 @@
|
||||
#define MAP_GROUP(map) (MAP_##map >> 8)
|
||||
#define MAP_NUM(map) (MAP_##map & 0xFF)
|
||||
|
||||
#define MAP(map) MAP_GROUP(map), MAP_NUM(map)
|
||||
|
||||
#endif // GUARD_CONSTANTS_MAPS_H
|
||||
|
||||
@@ -12,5 +12,6 @@ void DoFallWarp(void);
|
||||
void sub_807E59C(void);
|
||||
void sub_807E500(void);
|
||||
void sub_807DF64(void);
|
||||
void sub_807DC18(void);
|
||||
|
||||
#endif // GUARD_FIELD_FADETRANSITION_H
|
||||
|
||||
@@ -12,5 +12,6 @@ void sub_80AEDBC(void);
|
||||
void DoCurrentWeather(void);
|
||||
void SetSav1WeatherFromCurrMapHeader(void);
|
||||
void sub_807B0C4(u16 *, u16 *, u32);
|
||||
void play_some_sound(void);
|
||||
|
||||
#endif // GUARD_WEATHER_H
|
||||
|
||||
@@ -100,7 +100,7 @@ struct CgbChannel
|
||||
u8 le;
|
||||
u8 sw;
|
||||
u32 fr;
|
||||
u32 wp;
|
||||
u32 * wp;
|
||||
u32 cp;
|
||||
u32 tp;
|
||||
u32 pp;
|
||||
|
||||
@@ -760,13 +760,6 @@ struct SaveBlock1
|
||||
|
||||
extern struct SaveBlock1* gSaveBlock1Ptr;
|
||||
|
||||
struct Bitmap // TODO: Find a better spot for this
|
||||
{
|
||||
u8* pixels;
|
||||
u32 width:16;
|
||||
u32 height:16;
|
||||
};
|
||||
|
||||
extern u8 gReservedSpritePaletteCount;
|
||||
|
||||
#endif // GUARD_GLOBAL_H
|
||||
|
||||
@@ -7,5 +7,6 @@ extern bool8 gUnknown_3005ECC;
|
||||
|
||||
void sub_812B484(void);
|
||||
void HelpSystem_SetSomeVariable2(u8);
|
||||
void sub_812B478(void);
|
||||
|
||||
#endif //GUARD_HELP_SYSTEM_H
|
||||
|
||||
+1
-1
@@ -204,7 +204,7 @@ bool8 sub_800AA48(void);
|
||||
void sub_800A5BC(void);
|
||||
void sub_800AA80(u8);
|
||||
void sub_80098D8(void);
|
||||
void sub_80098B8(void);
|
||||
void CloseLink(void);
|
||||
bool8 sub_800A4BC(void);
|
||||
|
||||
#endif // GUARD_LINK_H
|
||||
|
||||
+9
-3
@@ -1,9 +1,15 @@
|
||||
#ifndef GUARD_LINK_RFU_H
|
||||
#define GUARD_LINK_RFU_H
|
||||
|
||||
void sub_8142504(const u8 *str);
|
||||
bool32 mevent_0814257C(u8 * cmdPtr, const u8 * src);
|
||||
void AddTextPrinterToWindow1(const u8 *str);
|
||||
bool32 MG_PrintTextOnWindow1AndWaitButton(u8 * cmdPtr, const u8 * src);
|
||||
void sub_80FA190(void);
|
||||
void sub_8142420(void);
|
||||
void MG_DrawCheckerboardPattern(void);
|
||||
void task_add_05_task_del_08FA224_when_no_RfuFunc(void);
|
||||
bool8 IsNoOneConnected(void);
|
||||
void DestroyWirelessStatusIndicatorSprite(void);
|
||||
void MEvent_CreateTask_CardOrNewsWithFriend(u8);
|
||||
void MEvent_CreateTask_CardOrNewsOverWireless(u8);
|
||||
void MEvent_CreateTask_Leader(u8);
|
||||
|
||||
#endif //GUARD_LINK_RFU_H
|
||||
|
||||
@@ -59,5 +59,7 @@ void sub_81AE6C8(u8 a0, u16 *a1, u16 *a2);
|
||||
void DestroyListMenu(u8, u16 *, u16 *);
|
||||
u16 ListMenuGetYCoordForPrintingArrowCursor(u8);
|
||||
void sub_8107D38(u8, u8);
|
||||
s32 DoMysteryGiftListMenu(const struct WindowTemplate *windowTemplate, const struct ListMenuTemplate *listMenuTemplate, u8 arg2, u16 tileNum, u16 palNum);
|
||||
void ListMenuDefaultCursorMoveFunc(s32, u8, struct ListMenu *);
|
||||
|
||||
#endif //GUARD_LIST_MENU_H
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "global.h"
|
||||
|
||||
void sub_8146C30(u32 a0);
|
||||
void GenerateRandomNews(u32 a0);
|
||||
void sub_8146C88(void);
|
||||
void sub_8146CA4(void);
|
||||
|
||||
|
||||
+20
-3
@@ -33,12 +33,13 @@ struct MEvent_Str_2
|
||||
u8 fill_00[0x40];
|
||||
};
|
||||
|
||||
struct MEventBuffer_3120_Sub * sub_8143D58(void);
|
||||
struct MEventBuffer_32E0_Sub * sav1_get_mevent_buffer_1(void);
|
||||
struct MEventBuffer_3120_Sub * GetSavedWonderNews(void);
|
||||
struct MEventBuffer_32E0_Sub * GetSavedWonderCard(void);
|
||||
struct MEventBuffer_3430_Sub * sav1_get_mevent_buffer_2(void);
|
||||
struct MysteryEventStruct * sub_8143D94(void);
|
||||
bool32 sub_8143DC8(const struct MEventBuffer_3120_Sub * src);
|
||||
bool32 sub_8143E1C(void);
|
||||
bool32 ValidateReceivedWonderNews(void);
|
||||
bool32 ValidateReceivedWonderCard(void);
|
||||
bool32 sub_8143EF4(const u8 * src);
|
||||
bool32 sub_8143F68(const struct MEventBuffer_32E0_Sub * data);
|
||||
void sub_814410C(struct MEventBuffer_32E0_Sub * buffer);
|
||||
@@ -49,5 +50,21 @@ u32 sub_8144418(const u16 * a0, const struct MEventStruct_Unk1442CC * a1, void *
|
||||
u32 sub_8144434(const u16 * a0, const struct MEventStruct_Unk1442CC * a1, void * unused);
|
||||
bool32 sub_8144474(const struct MEventStruct_Unk1442CC * a0, const u16 * a1);
|
||||
u16 sub_81444B0(const struct MEventStruct_Unk1442CC * a0, u32 command);
|
||||
bool32 InitWonderCardResources(struct MEventBuffer_32E0_Sub * r5, struct MEventBuffer_3430_Sub * r6);
|
||||
bool32 InitWonderNewsResources(const struct MEventBuffer_3120_Sub * a0);
|
||||
s32 FadeToWonderCardMenu(void);
|
||||
s32 FadeToWonderNewsMenu(void);
|
||||
void DestroyWonderCard(void);
|
||||
void DestroyWonderNews(void);
|
||||
void DestroyWonderCardResources(void);
|
||||
void DestroyWonderNewsResources(void);
|
||||
s32 FadeOutFromWonderCard(bool32 flag);
|
||||
s32 FadeOutFromWonderNews(bool32 flag);
|
||||
bool32 CheckReceivedGiftFromWonderCard(void);
|
||||
void MENews_AddScrollIndicatorArrowPair(void);
|
||||
void MENews_RemoveScrollIndicatorArrowPair(void);
|
||||
bool32 WonderNews_Test_Unk_02(void);
|
||||
bool32 WonderCard_Test_Unk_08_6(void);
|
||||
u32 MENews_GetInput(u16 input);
|
||||
|
||||
#endif //GUARD_MEVENT_H
|
||||
|
||||
@@ -37,7 +37,7 @@ struct mevent_cmd_ish
|
||||
u32 parameter;
|
||||
};
|
||||
|
||||
struct mevent_srv_ish
|
||||
struct mevent_client
|
||||
{
|
||||
u32 unk_00;
|
||||
u32 param;
|
||||
@@ -83,13 +83,13 @@ void mevent_srv_sub_init(struct mevent_srv_sub * svr, u32 sendPlayerNo, u32 recv
|
||||
void mevent_srv_sub_init_send(struct mevent_srv_sub * svr, u32 ident, const void * src, u32 size);
|
||||
void mevent_srv_sub_init_recv(struct mevent_srv_sub * svr, u32 ident, void * dest);
|
||||
|
||||
void mevent_srv_ish_do_init(void);
|
||||
u32 mevent_srv_ish_do_exec(u16 * a0);
|
||||
void mevent_srv_ish_inc_flag(void);
|
||||
void * mevent_srv_ish_get_buffer(void);
|
||||
void mevent_srv_ish_set_param(u32 a0);
|
||||
void mevent_srv_common_do_init_1(void);
|
||||
void mevent_srv_common_do_init_2(void);
|
||||
u32 mevent_srv_init_do_exec(u16 * a0);
|
||||
void mevent_client_do_init(void);
|
||||
u32 mevent_client_do_exec(u16 * a0);
|
||||
void mevent_client_inc_flag(void);
|
||||
void * mevent_client_get_buffer(void);
|
||||
void mevent_client_set_param(u32 a0);
|
||||
void mevent_srv_init_wnews(void);
|
||||
void mevent_srv_new_wcard(void);
|
||||
u32 mevent_srv_common_do_exec(u16 * a0);
|
||||
|
||||
#endif //GUARD_MEVENT_SERVER_H
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef GUARD_MYSTERY_EVENT_MSG_H
|
||||
#define GUARD_MYSTERY_EVENT_MSG_H
|
||||
|
||||
#include <gba/gba.h>
|
||||
#include "gba/gba.h"
|
||||
|
||||
extern const u8 gText_MysteryGiftBerry[];
|
||||
extern const u8 gText_MysteryGiftBerryTransform[];
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef GUARD_MYSTERY_GIFT_MENU_H
|
||||
#define GUARD_MYSTERY_GIFT_MENU_H
|
||||
|
||||
extern bool8 gUnknown_203F3B8;
|
||||
extern bool8 gGiftIsFromEReader;
|
||||
|
||||
void sub_81422FC(void);
|
||||
void sub_8142344(bool8, bool32);
|
||||
void MainCB_FreeAllBuffersAndReturnToInitTitleScreen(void);
|
||||
void PrintMysteryGiftOrEReaderTopMenu(bool8, bool32);
|
||||
|
||||
#endif //GUARD_MYSTERY_GIFT_MENU_H
|
||||
|
||||
@@ -30,5 +30,6 @@ void Menu_LoadStdPalAt(u16);
|
||||
void * malloc_and_decompress(const void * src, u32 * size);
|
||||
u16 sub_80F796C(void);
|
||||
void sub_80F6B08(u8 bgId, u8 left, u8 top, u8 width, u8 height, u8 palette);
|
||||
void sub_80F696C(u8 bgId, const void * gfx, u32 size, u16 a3, u8 a4);
|
||||
|
||||
#endif // GUARD_NEW_MENU_HELPERS_H
|
||||
|
||||
@@ -96,11 +96,17 @@ void sub_80563F0(void);
|
||||
extern u8 gUnknown_2031DD8;
|
||||
extern u8 gUnknown_2036E28;
|
||||
|
||||
extern void (*gUnknown_3005020)(void);
|
||||
extern bool8 (* gFieldCallback2)(void);
|
||||
|
||||
void SetLastHealLocationWarp(u8 healLocaionId);
|
||||
void sub_8055864(u8 mapGroup, u8 mapNum);
|
||||
void CB2_NewGame(void);
|
||||
bool8 Overworld_MapTypeAllowsTeleportAndFly(u8 mapType);
|
||||
void Overworld_ResetStateAfterTeleport(void);
|
||||
|
||||
void Overworld_FadeOutMapMusic(void);
|
||||
void sub_805671C(void);
|
||||
bool8 sub_8055FC4(void);
|
||||
|
||||
#endif //GUARD_ROM4_H
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
#ifndef GUARD_SEAGALLOP_H
|
||||
#define GUARD_SEAGALLOP_H
|
||||
|
||||
enum SeaGallopDestinations
|
||||
{
|
||||
SEAGALLOP_VERMILION_CITY,
|
||||
SEAGALLOP_ONE_ISLAND,
|
||||
SEAGALLOP_TWO_ISLAND,
|
||||
SEAGALLOP_THREE_ISLAND,
|
||||
SEAGALLOP_FOUR_ISLAND,
|
||||
SEAGALLOP_FIVE_ISLAND,
|
||||
SEAGALLOP_SIX_ISLAND,
|
||||
SEAGALLOP_SEVEN_ISLAND,
|
||||
SEAGALLOP_CINNABAR_ISLAND,
|
||||
SEAGALLOP_NAVEL_ROCK,
|
||||
SEAGALLOP_BIRTH_ISLAND
|
||||
};
|
||||
|
||||
void ScrSpecial_SeaGallopFerry(void);
|
||||
|
||||
#endif //GUARD_SEAGALLOP_H
|
||||
@@ -23,5 +23,8 @@ void sub_8098C6C(u8 bg, u16 destOffset, u8 palOffset);
|
||||
void sub_814FEAC(u8 windowId, u16 tileStart, u8 palette);
|
||||
void sub_814FF2C(u8 windowId, u16 tileStart, u8 palette);
|
||||
void sub_815001C(u8 windowId, u16 tileStart, u8 palette);
|
||||
void sub_814FE40(u8 windowId, u16 tileStart, u8 palette);
|
||||
void sub_814FDA0(u8 windowId, u16 tileStart, u8 palette);
|
||||
void DrawTextBorderOuter(u8 windowId, u16 tileStart, u8 palette);
|
||||
|
||||
#endif // GUARD_TEXT_WINDOW_H
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef GUARD_TITLE_SCREEN_H
|
||||
#define GUARD_TITLE_SCREEN_H
|
||||
|
||||
void CB2_InitTitleScreen(void);
|
||||
|
||||
#endif //GUARD_TITLE_SCREEN_H
|
||||
Reference in New Issue
Block a user