mirror of
https://github.com/pret/pmd-red.git
synced 2026-10-02 05:48:45 -05:00
remove text1.h text2.h
This commit is contained in:
@@ -1942,9 +1942,9 @@ _0801089A:
|
||||
_080108FC: .4byte gUnknown_203B0E8
|
||||
_08010900: .4byte 0x000052da
|
||||
_08010904: .4byte 0x000052d8
|
||||
_08010908: .4byte gFontTiles_202C038
|
||||
_08010908: .4byte gUnknown_202B038 + 0x1000
|
||||
_0801090C: .4byte 0x00003114
|
||||
_08010910: .4byte gFontTilesExtra_202C838
|
||||
_08010910: .4byte gUnknown_202B038 + 0x1800
|
||||
_08010914: .4byte 0x00001114
|
||||
thumb_func_end sub_8010858
|
||||
|
||||
|
||||
@@ -278,9 +278,9 @@ _080110F2:
|
||||
_08011150: .4byte gUnknown_203B0E4
|
||||
_08011154: .4byte 0x00004dd6
|
||||
_08011158: .4byte 0x00004dd4
|
||||
_0801115C: .4byte gFontTiles_202C038
|
||||
_0801115C: .4byte gUnknown_202B038 + 0x1000
|
||||
_08011160: .4byte 0x00002014
|
||||
_08011164: .4byte gFontTilesExtra_202C838
|
||||
_08011164: .4byte gUnknown_202B038 + 0x1800
|
||||
thumb_func_end sub_80110B0
|
||||
|
||||
thumb_func_start sub_8011168
|
||||
|
||||
@@ -3,11 +3,64 @@
|
||||
|
||||
#include "structs/str_text.h"
|
||||
|
||||
// size: 0x10
|
||||
struct unkShiftData
|
||||
{
|
||||
u32 bytesA;
|
||||
u32 bytesB;
|
||||
u32 shift_left;
|
||||
u32 shift_right;
|
||||
};
|
||||
|
||||
// size: 0xC
|
||||
struct unkChar
|
||||
{
|
||||
u16 *unk0;
|
||||
u16 unk4;
|
||||
s16 unk6;
|
||||
u8 fill8;
|
||||
u8 fill9;
|
||||
u8 unkA;
|
||||
};
|
||||
|
||||
struct unkStruct_80B8824
|
||||
{
|
||||
u32 arr[9];
|
||||
};
|
||||
struct unkStruct_80B8848
|
||||
{
|
||||
u32 arr[8];
|
||||
};
|
||||
|
||||
struct UnkDrawStringStruct;
|
||||
|
||||
struct UnkDrawStringStruct
|
||||
{
|
||||
s16 unk0;
|
||||
s16 unk2;
|
||||
s16 unk4;
|
||||
s16 unk6;
|
||||
s16 unk8;
|
||||
s16 unkA;
|
||||
s32 unkC;
|
||||
u32 unk10;
|
||||
u32 unk14;
|
||||
u32 unk18;
|
||||
u32 unk1C;
|
||||
u8 unk20;
|
||||
u8 unk21;
|
||||
u8 fill22;
|
||||
u8 fill23;
|
||||
const u8* (*unk24)(const u8 *, const u8 *, struct UnkDrawStringStruct*);
|
||||
s32 unk28;
|
||||
s32 unk2C;
|
||||
s32 unk30;
|
||||
};
|
||||
|
||||
extern UnkTextStruct1 gUnknown_2027370[4];
|
||||
extern u8 gUnknown_202749A[11];
|
||||
extern bool8 gUnknown_20274A5;
|
||||
extern u16 gUnknown_202B038[4][32][32]; // Usage points to these dimensions
|
||||
|
||||
void LoadCharmaps(void);
|
||||
u32 UpdateFadeInTile(u32 a0);
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
#ifndef GUARD_TEXT1_H
|
||||
#define GUARD_TEXT1_H
|
||||
|
||||
#include "structs/str_text.h"
|
||||
|
||||
|
||||
extern UnkTextStruct2 gUnknown_202AFC0[4];
|
||||
extern u32 gTextShadowMask;
|
||||
extern u16 gUnknown_202B038[4][32][32]; // dimensions unknown... but usage points to these dimensions
|
||||
|
||||
void LoadCharmaps(void);
|
||||
void SelectCharmap(u32);
|
||||
u32 UpdateFadeInTile(u32 a0);
|
||||
|
||||
u32 sub_80063B0(void);
|
||||
void xxx_call_save_unk_text_struct_800641C(const UnkTextStruct2 *a0, bool8 a1, bool8 a2);
|
||||
|
||||
#endif // GUARD_TEXT1_H
|
||||
@@ -1,83 +0,0 @@
|
||||
#ifndef GUARD_TEXT2_H
|
||||
#define GUARD_TEXT2_H
|
||||
|
||||
#include "structs/str_text.h"
|
||||
|
||||
// size: 0x10
|
||||
struct unkShiftData
|
||||
{
|
||||
u32 bytesA;
|
||||
u32 bytesB;
|
||||
u32 shift_left;
|
||||
u32 shift_right;
|
||||
};
|
||||
|
||||
// size: 0xC
|
||||
struct unkChar
|
||||
{
|
||||
u16 *unk0;
|
||||
u16 unk4;
|
||||
s16 unk6;
|
||||
u8 fill8;
|
||||
u8 fill9;
|
||||
u8 unkA;
|
||||
};
|
||||
|
||||
struct unkStruct_80B8824
|
||||
{
|
||||
u32 arr[9];
|
||||
};
|
||||
struct unkStruct_80B8848
|
||||
{
|
||||
u32 arr[8];
|
||||
};
|
||||
|
||||
u32 xxx_call_draw_char(s32, s32, u32, u32, u32);
|
||||
|
||||
struct UnkDrawStringStruct;
|
||||
|
||||
struct UnkDrawStringStruct
|
||||
{
|
||||
s16 unk0;
|
||||
s16 unk2;
|
||||
s16 unk4;
|
||||
s16 unk6;
|
||||
s16 unk8;
|
||||
s16 unkA;
|
||||
s32 unkC;
|
||||
u32 unk10;
|
||||
u32 unk14;
|
||||
u32 unk18;
|
||||
u32 unk1C;
|
||||
u8 unk20;
|
||||
u8 unk21;
|
||||
u8 fill22;
|
||||
u8 fill23;
|
||||
const u8* (*unk24)(const u8 *, const u8 *, struct UnkDrawStringStruct*);
|
||||
s32 unk28;
|
||||
s32 unk2C;
|
||||
s32 unk30;
|
||||
};
|
||||
|
||||
|
||||
void RestoreUnkTextStruct_8006518(UnkTextStruct2 *);
|
||||
void sub_80073B8(s32);
|
||||
void sub_80073E0(s32);
|
||||
void sub_80078A4(u32, s32, s32, s32, u32);
|
||||
void sub_800792C(u32, s32, s32, s32, u32);
|
||||
void sub_8007A78(u32, s32, s32, s32, u32);
|
||||
void sub_8007B7C(u32, s32, s32, s32, u32);
|
||||
void sub_8007E20(u32 a0, u32 a1, u32 a2, u32 a3, u32 a4, u32 *a5, u32 a6);
|
||||
const u8 *xxx_get_next_char_from_string(const u8 *a1, u32 *a0);
|
||||
const u8 *xxx_handle_format_global(const u8 *str, struct UnkDrawStringStruct *unkStrPtr);
|
||||
|
||||
// text.s
|
||||
extern const struct unkChar *GetCharacter(s32);
|
||||
extern void InitGraphics(void);
|
||||
void DisplayMonPortraitSpriteFlipped(s32 a0, const u8 *compressedData, s32 a1);
|
||||
extern void CallPrepareTextbox_8008C54(u32);
|
||||
extern s32 sub_8008ED0(const u8 *);
|
||||
void PrintStringOnWindow2(s32 x, s32 y, const u8 *str, u32 windowId, u32 terminatingChr, s32 lineSpacing);
|
||||
void PrintStringOnWindow(s32 x, s32 y, const u8 *str, u32 windowId, u32 terminatingChr);
|
||||
|
||||
#endif // GUARD_TEXT2_H
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
static EWRAM_DATA_2 struct_Sub80095E4_2 *sAdventureLog = {0};
|
||||
@@ -151,4 +150,4 @@ static void DisplayAdventureLog(void)
|
||||
}
|
||||
|
||||
sub_80073E0(sAdventureLog->s0.unk34);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "adventure_log_menu.h"
|
||||
#include "constants/main_menu.h"
|
||||
#include "input.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
void CreateAdventureLogMenu(void)
|
||||
{
|
||||
@@ -33,4 +33,4 @@ u32 UpdateAdventureLogMenu(void)
|
||||
break;
|
||||
}
|
||||
return nextMenu;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,20 +28,16 @@
|
||||
#include "save_read.h"
|
||||
#include "save.h"
|
||||
#include "sprite.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
extern void NDS_LoadOverlay_GroundMain(void);
|
||||
extern void sub_8014144(void);
|
||||
extern void sub_800DAAC(void);
|
||||
extern void xxx_script_related_8001334(u32);
|
||||
extern void LoadTitleScreen(void);
|
||||
extern void sub_80095CC(u32, u32);
|
||||
extern void nullsub_33(void);
|
||||
extern u32 sub_80009D0(u32);
|
||||
|
||||
extern void xxx_call_update_bg_vram(void);
|
||||
|
||||
extern u32 gUnknown_203B03C;
|
||||
extern u16 gUnknown_2026E4E;
|
||||
extern s32 gTitleBrightness;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "code_8009804.h"
|
||||
#include "cpu.h"
|
||||
#include "file_system.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
extern const u8 gUnknown_80B88CC[];
|
||||
extern const struct FileArchive gSystemFileArchive; // 8300500
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "code_8012A18_1.h"
|
||||
#include "sprite_oam.h"
|
||||
#include "text_util.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
struct unkStruct_203B1FC
|
||||
{
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
struct unkStruct_203B1F8
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B200 *sUnknown_203B200 = {0};
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "sprite.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B230 *sUnknown_203B230 = {0};
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B234 *sUnknown_203B234 = {0};
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include "items.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B244 *sUnknown_203B244 = {0};
|
||||
static EWRAM_DATA_2 u32 sUnknown_203B248 = {0};
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
#include "options_menu1.h"
|
||||
#include "party_list_menu.h"
|
||||
#include "rescue_team_info.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
#include "wigglytuff_shop2.h"
|
||||
#include "wonder_mail_802C4C8.h"
|
||||
#include "wonder_mail_802C860.h"
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
static EWRAM_DATA_2 struct struct_Sub80095E4_2 *sUnknown_203B258 = {0};
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
#include "input.h"
|
||||
#include "items.h"
|
||||
#include "text.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
#include "memory.h"
|
||||
#include "moves.h"
|
||||
#include "code_801EE10.h"
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include "menu_input.h"
|
||||
#include "moves.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
struct unkStruct_203B274
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#include "sprite.h"
|
||||
#include "structs/menu.h"
|
||||
#include "structs/str_text.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
// TODO: UNIFY WITH struct_Sub80095E4
|
||||
struct unkStruct_203B278
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B294 *sUnknown_203B294 = {0};
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 u32 gUnknown_203B298 = {0};
|
||||
static EWRAM_DATA_2 u16 gUnknown_203B29C = {0};
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
#include "menu_input.h"
|
||||
#include "pokemon.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B2AC *sUnknown_203B2AC = {0};
|
||||
|
||||
|
||||
@@ -10,10 +10,7 @@
|
||||
#include "items.h"
|
||||
#include "memory.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
|
||||
extern u8 gSpeakerNameBuffer[];
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B2FC *sUnknown_203B2FC = {0};
|
||||
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon_mail.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B300 *sUnknown_203B300 = {0};
|
||||
|
||||
@@ -72,4 +71,4 @@ static void sub_802DF88(void)
|
||||
sub_80073B8(sUnknown_203B300->unk10);
|
||||
CreateRescueDescription(sUnknown_203B300->mail);
|
||||
sub_80073E0(sUnknown_203B300->unk10);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
#include "code_803D0D8.h"
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/str_dungeon.h"
|
||||
#include "pokemon.h"
|
||||
#include "code_8094F88.h"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "bg_palette_buffer.h"
|
||||
#include "code_8004AA0.h"
|
||||
#include "input.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
#include "code_801602C.h"
|
||||
#include "menu_input.h"
|
||||
#include "code_8009804.h"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "dungeon_random.h"
|
||||
#include "code_8009804.h"
|
||||
#include "tile_types.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
#include "code_805D8C8.h"
|
||||
#include "code_803E668.h"
|
||||
#include "dungeon_engine.h"
|
||||
@@ -330,7 +330,6 @@ extern void nullsub_16(void);
|
||||
extern void sub_80521D0(void);
|
||||
extern void sub_803F27C(u8);
|
||||
extern void sub_807E7FC(u8);
|
||||
extern void sub_80095CC(u32, u32);
|
||||
extern bool8 IsLevelResetTo1(u8 dungeon);
|
||||
extern void sub_8068A84(PokemonStruct1 *pokemon);
|
||||
extern void sub_807EAA0(u32, u32);
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
#include "items.h"
|
||||
#include "play_time.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "text2.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
#include "code_806CD90.h"
|
||||
#include "code_8044CC8.h"
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "items.h"
|
||||
#include "moves.h"
|
||||
#include "text_util.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
struct unkStruct_8113080
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
#include "memory.h"
|
||||
#include "string_format.h"
|
||||
#include "structs/str_3001B64.h"
|
||||
@@ -13,8 +13,6 @@ extern u8 gInvalidityText[];
|
||||
extern u8 ScriptPrintText_809B2B8(u32 *, u32, u32, u32);
|
||||
extern u32 IsTextboxOpen_809B40C(u32 *);
|
||||
extern void sub_801416C(s32, s32);
|
||||
extern void sub_80095CC(u32, u32);
|
||||
extern void sub_8009408(u32, u32);
|
||||
extern void ResetTextbox_809B294(void);
|
||||
extern void sub_8014144(void);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
#include "text.h"
|
||||
|
||||
extern void sub_8272774(UnkTextStruct1 *r0, u32 r1);
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
#include "event_flag.h"
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 Credits1Work *sCredits1Work = {0};
|
||||
|
||||
@@ -138,4 +137,4 @@ void sub_803565C(void)
|
||||
MemoryFree(sCredits1Work);
|
||||
sCredits1Work = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "pokemon.h"
|
||||
#include "save.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
enum DebugMenuOptions
|
||||
{
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B3F0 *sUnknown_203B3F0 = {0};
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "wigglytuff_shop1.h"
|
||||
#include "wigglytuff_shop2.h"
|
||||
|
||||
@@ -217,7 +216,7 @@ static bool8 sub_803ABC8(void)
|
||||
PokemonStruct1 *mon;
|
||||
s32 i;
|
||||
s32 mask;
|
||||
|
||||
|
||||
for (i = 0, mask = 1; i < NUM_MONSTERS; i++) {
|
||||
// Some check was optimized out. Needed for matching. Thanks kaz
|
||||
if (i) {
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B3F8 *sUnknown_203B3F8 = {0};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "input.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
u32 CreateDualSlotMenu(void)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "structs/str_dungeon.h"
|
||||
#include "tile_types.h"
|
||||
#include "random.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
#include "dungeon_engine.h"
|
||||
#include "dungeon_movement.h"
|
||||
#include "dungeon_leader.h"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "code_803E668.h"
|
||||
#include "bg_palette_buffer.h"
|
||||
#include "input.h"
|
||||
#include "text2.h"
|
||||
#include "pokemon.h"
|
||||
#include "file_system.h"
|
||||
#include "dungeon_util_1.h"
|
||||
@@ -19,7 +18,6 @@
|
||||
#include "code_8045A00.h"
|
||||
#include "exclusive_pokemon.h"
|
||||
#include "dungeon_leader.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
void sub_80526D0(s32 r0);
|
||||
|
||||
@@ -8,13 +8,10 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 FelicityBankWork *sFelicityBankWork = {0};
|
||||
|
||||
extern u8 gSpeakerNameBuffer[];
|
||||
|
||||
#include "data/felicity_bank.h"
|
||||
|
||||
static void CreateFelicityBankShopMenu(void);
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
#include "moves.h"
|
||||
#include "pokemon.h"
|
||||
#include "sprite.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B2BC *sUnknown_203B2BC = {0};
|
||||
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
#include "menu_input.h"
|
||||
#include "moves.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
EWRAM_DATA_2 unkStruct_203B2B4 *gUnknown_203B2B4 = {0};
|
||||
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
#include "save_write.h"
|
||||
#include "rescue_password_menu.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "wonder_mail_4.h"
|
||||
#include "wonder_mail_5.h"
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "moves.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 GulpinShopWork *sGulpinShopWork = {0};
|
||||
|
||||
|
||||
@@ -17,13 +17,10 @@
|
||||
#include "moves.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "pokemon_mid.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
EWRAM_DATA_2 unkStruct_203B27C *gUnknown_203B27C = {0};
|
||||
|
||||
extern u8 gSpeakerNameBuffer[];
|
||||
|
||||
#include "data/gulpin_shop_801FB50.h"
|
||||
|
||||
enum menuActions {
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
static EWRAM_DATA_2 struct_Sub80095E4 *sUnknown_203B264 = {0};
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
static EWRAM_DATA_2 struct_Sub80095E4_2 *sUnknown_203B268 = {0};
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
#include "menu_input.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "sprite.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct IQSkillInfoMenu *sIQSkillInfoMenu = {0};
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct IQSkillListMenu *sIQSkillListMenu = {0};
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct IQSkillMenu *sIQSkillMenu = {0};
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "random.h"
|
||||
#include "code_800D090.h"
|
||||
#include "text_util.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "string_format.h"
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
@@ -11,10 +11,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
|
||||
extern u8 gSpeakerNameBuffer[];
|
||||
#include "text.h"
|
||||
|
||||
EWRAM_DATA_2 struct KangaskhanStorageWork *gKangaskhanStorageWork = {0};
|
||||
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#include "kecleon_bros4.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B20C *sUnknown_203B20C = {0};
|
||||
|
||||
|
||||
@@ -15,10 +15,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
|
||||
extern u8 gSpeakerNameBuffer[];
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 KecleonBrosWork1 *sKecleonBrosWork1 = {0};
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "kecleon_bros2.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
static EWRAM_DATA_2 struct_Sub80095E4_2 *gUnknown_203B214 = {0};
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "kecleon_bros3.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
static EWRAM_DATA_2 struct_Sub80095E4_2 *gUnknown_203B21C = {0};
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#include "kecleon_bros4.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B224 *gUnknown_203B224 = {0};
|
||||
static EWRAM_DATA_2 u16 gUnknown_203B228 = {0};
|
||||
|
||||
@@ -20,8 +20,7 @@
|
||||
#include "pokemon.h"
|
||||
#include "save.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
extern const struct FileArchive gTitleMenuFileArchive;
|
||||
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
#include "pokemon.h"
|
||||
#include "random.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
enum
|
||||
{
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
#include "code_802DE84.h"
|
||||
#include "common_strings.h"
|
||||
#include "memory.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/menu.h"
|
||||
#include "input.h"
|
||||
#include "mailbox.h"
|
||||
|
||||
10
src/main.c
10
src/main.c
@@ -14,8 +14,7 @@
|
||||
#include "random.h"
|
||||
#include "reg_control.h"
|
||||
#include "sprite.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
EWRAM_DATA u8 IntrMain_Buffer[0x120] = {0};
|
||||
EWRAM_DATA IntrCallback gIntrTable[6] = {0};
|
||||
@@ -41,6 +40,7 @@ extern const IntrCallback gInitialIntrTable[6];
|
||||
|
||||
// code_2.c
|
||||
extern void GameLoop(void);
|
||||
extern void InitGraphics(void);
|
||||
// code_800D090.c
|
||||
extern void Hang(void);
|
||||
extern void sub_800D6AC(void);
|
||||
@@ -128,11 +128,11 @@ void sub_800B540(void)
|
||||
|
||||
REG_IE ^= INTR_FLAG_TIMER3 | INTR_FLAG_VBLANK | INTR_FLAG_VCOUNT; // 0x45
|
||||
|
||||
*(u8*)®_DISPCNT |= DISPCNT_FORCED_BLANK;
|
||||
*(u8*)®_DISPCNT |= DISPCNT_FORCED_BLANK;
|
||||
|
||||
InitIntrTable(gInitialIntrTable); // set up intrrupt vector/table
|
||||
|
||||
REG_TM3CNT = (TIMER_64CLK | TIMER_INTR_ENABLE | TIMER_ENABLE) << 16;
|
||||
REG_TM3CNT = (TIMER_64CLK | TIMER_INTR_ENABLE | TIMER_ENABLE) << 16;
|
||||
|
||||
REG_IE |= INTR_FLAG_GAMEPAK | INTR_FLAG_TIMER3 | INTR_FLAG_VCOUNT | INTR_FLAG_VBLANK; // 0x2045
|
||||
REG_DISPSTAT = DISPSTAT_VCOUNT_INTR | DISPSTAT_VBLANK_INTR;
|
||||
@@ -216,4 +216,4 @@ IntrCallback SetInterruptCallback(u32 index, IntrCallback new_callback)
|
||||
EnableInterrupts();
|
||||
|
||||
return old_callback;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
#include "other_menus1.h"
|
||||
#include "rescue_password_menu.h"
|
||||
#include "save_menu.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "trade_items_menu.h"
|
||||
#include "unk_menu_203B360.h"
|
||||
#include "wonder_mail_main_menu.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "save.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 MainMenu2Work *sUnknown_203B34C = {0};
|
||||
static EWRAM_DATA_2 u32 sUnknown_203B350 = {0};
|
||||
|
||||
@@ -12,10 +12,7 @@
|
||||
#include "makuhita_dojo2.h"
|
||||
#include "memory.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
|
||||
extern u8 gSpeakerNameBuffer[];
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 MakuhitaDojoWork1 *sMakuhitaDojoWork1 = {0};
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "makuhita_dojo2.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 MakuhitaDojoWork2 *sMakuhitaDojoWork2 = {0};
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include "menu_input.h"
|
||||
#include "sprite.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "util.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "string_format.h"
|
||||
#include "code_80118A4.h"
|
||||
#include "code_801B60C.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
struct unkStruct_203B310
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "memory.h"
|
||||
#include "moves.h"
|
||||
#include "text_util.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA OpenedFile *sWazaParametersFile = {0};
|
||||
static EWRAM_DATA MoveDataEntry *sMovesData = {0};
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#include "menu_input.h"
|
||||
#include "options_menu1.h"
|
||||
#include "options_menu2.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -309,4 +308,4 @@ static void HandleChangeSettingsMenu(void)
|
||||
SetOptionsMenuState(OPTIONS_MENU_MAIN);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "options_menu2.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B260 *sUnknown_203B260 = {0};
|
||||
|
||||
@@ -124,4 +123,4 @@ static void CreateOptionsMenu(void)
|
||||
}
|
||||
|
||||
sub_80073E0(sUnknown_203B260->unk44);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "other_menus1.h"
|
||||
#include "other_menus2.h"
|
||||
#include "sprite.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
// TODO: MAKE STATIC WHEN other_menus1.s IS DED
|
||||
EWRAM_DATA_2 unkStruct_203B35C *sUnknown_203B35C = {0};
|
||||
@@ -26,8 +26,6 @@ EWRAM_DATA_2 unkStruct_203B35C *sUnknown_203B35C = {0};
|
||||
// other_menus1.s
|
||||
extern void sub_8037810(void);
|
||||
extern void sub_8037900(void);
|
||||
// text.s
|
||||
extern void xxx_call_update_bg_vram();
|
||||
// other_menus2.s
|
||||
extern s32 sub_8037B28(u32);
|
||||
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
#include "party_list_menu.h"
|
||||
#include "pokemon.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B2B8 *sUnknown_203B2B8 = {0};
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
#include "pokemon.h"
|
||||
#include "items.h"
|
||||
#include "memory.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/menu.h"
|
||||
#include "input.h"
|
||||
#include "menu_input.h"
|
||||
@@ -230,7 +229,7 @@ void CreatePelipperBoardMenu(void)
|
||||
{
|
||||
gPelipperBoard->unkFC[loopMax] = 1;
|
||||
}
|
||||
|
||||
|
||||
loopMax += 1;
|
||||
gPelipperBoard->menuItems[loopMax].text = NULL;
|
||||
gPelipperBoard->menuItems[loopMax].menuAction = PELIPPER_BOARD_NULL;
|
||||
@@ -255,7 +254,7 @@ void CreatePelipperBoardMenu(void)
|
||||
void sub_802EC10(void) {
|
||||
|
||||
s32 index;
|
||||
s32 loopMax = 0;
|
||||
s32 loopMax = 0;
|
||||
gPelipperBoard->menuItems[loopMax].text = gCommonAccept[0];
|
||||
gPelipperBoard->menuItems[loopMax].menuAction = PELIPPER_BOARD_ACCEPT;
|
||||
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
#include "random.h"
|
||||
#include "save.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "string_format.h"
|
||||
|
||||
enum
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#include "menu_input.h"
|
||||
#include "personality_test2.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "string_format.h"
|
||||
|
||||
EWRAM_DATA_2 struct PersonalityStruct_203B404 *gUnknown_203B404 = {0};
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
#include "pokemon_mail.h"
|
||||
#include "pokemon_mail_pre.h"
|
||||
#include "text_util.h"
|
||||
#include "text2.h"
|
||||
|
||||
extern u8 gFormatBuffer_Items[];
|
||||
extern u8 gFormatBuffer_Monsters[]; // 202DF98
|
||||
#include "text.h"
|
||||
#include "string_format.h"
|
||||
|
||||
#include "data/pokemon_mail.h"
|
||||
|
||||
@@ -57,13 +55,13 @@ void CreateRescueTitle(unkStruct_802C39C *param_1)
|
||||
PrintStringOnWindow(21, param_1->y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case 12:
|
||||
BufferItemName(gFormatBuffer_Items, param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8830, gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8830, gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(21, param_1->y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case 11:
|
||||
BufferItemName(gFormatBuffer_Items, param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8848, gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8848, gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(21, param_1->y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case 4:
|
||||
@@ -78,24 +76,24 @@ void CreateRescueTitle(unkStruct_802C39C *param_1)
|
||||
case 10: {
|
||||
u8 bVar2 = param_1->unk8->seed + param_1->unk8->dungeon.id;
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80EAE5C[bVar2 % 4], gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80EAE5C[bVar2 % 4], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(21, param_1->y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
}
|
||||
case 9: {
|
||||
u8 bVar2 = param_1->unk8->seed + param_1->unk8->dungeon.id;
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E910C[bVar2 % 10], gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E910C[bVar2 % 10], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(21, param_1->y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
u8 bVar2 = param_1->unk8->seed + param_1->unk8->dungeon.id;
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E8C98[bVar2 % 15], gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E8C98[bVar2 % 15], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(21, param_1->y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
}
|
||||
@@ -163,13 +161,13 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
PrintStringOnWindow(10, y, gMedichamMissionDescription, param_1->unk0[0], 0);
|
||||
break;
|
||||
case 4:
|
||||
BufferItemName(gFormatBuffer_Items, param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8968, gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8968, gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case 5:
|
||||
BufferItemName(gFormatBuffer_Items, param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E89B0, gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E89B0, gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case 6:
|
||||
@@ -177,8 +175,8 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
break;
|
||||
case 7:
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E9F8C[param_1->unk0[1]].text, gFormatBuffer_Monsters, gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E9F8C[param_1->unk0[1]].text, gFormatBuffer_Monsters[0], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case 9:
|
||||
@@ -194,12 +192,12 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
case 16: {
|
||||
u8 bVar2 = param_1->unk8->seed + param_1->unk8->dungeon.id;
|
||||
u8 bVar3 = param_1->unk8->seed + param_1->unk8->dungeon.floor;
|
||||
BufferItemName(gFormatBuffer_Items, param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80EB3F8[bVar2 % 22], gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80EB3F8[bVar2 % 22], gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y += 12;
|
||||
|
||||
sprintfStatic(buf_1, gUnknown_80EB72C[bVar3 % 22], gFormatBuffer_Items);
|
||||
sprintfStatic(buf_1, gUnknown_80EB72C[bVar3 % 22], gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y -= 12;
|
||||
break;
|
||||
@@ -208,12 +206,12 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
u8 bVar2 = param_1->unk8->seed + param_1->unk8->dungeon.id;
|
||||
u8 bVar3 = param_1->unk8->seed + param_1->unk8->dungeon.floor;
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80EAEB8[bVar2 % 20], gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80EAEB8[bVar2 % 20], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y += 12;
|
||||
|
||||
sprintfStatic(buf_1, gUnknown_80EB198[bVar3 % 4], gFormatBuffer_Monsters);
|
||||
sprintfStatic(buf_1, gUnknown_80EB198[bVar3 % 4], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y -= 12;
|
||||
break;
|
||||
@@ -222,12 +220,12 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
u8 bVar2 = param_1->unk8->seed + param_1->unk8->dungeon.id;
|
||||
u8 bVar3 = param_1->unk8->seed + param_1->unk8->dungeon.floor;
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80EB220[bVar2 % 6], gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80EB220[bVar2 % 6], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y += 12;
|
||||
|
||||
sprintfStatic(buf_1, gUnknown_80EB2F0[bVar3 % 6], gFormatBuffer_Monsters);
|
||||
sprintfStatic(buf_1, gUnknown_80EB2F0[bVar3 % 6], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y -= 12;
|
||||
break;
|
||||
@@ -236,12 +234,12 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
u8 bVar2 = param_1->unk8->seed + param_1->unk8->dungeon.id;
|
||||
u8 bVar3 = param_1->unk8->seed + param_1->unk8->dungeon.floor;
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E91D4[bVar2 % 45], gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E91D4[bVar2 % 45], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y += 12;
|
||||
|
||||
sprintfStatic(buf_1, gUnknown_80E9820[bVar3 % 10], gFormatBuffer_Monsters);
|
||||
sprintfStatic(buf_1, gUnknown_80E9820[bVar3 % 10], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y -= 12;
|
||||
break;
|
||||
@@ -250,12 +248,12 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
u8 bVar2 = param_1->unk8->seed + param_1->unk8->dungeon.id;
|
||||
u8 bVar3 = param_1->unk8->seed + param_1->unk8->dungeon.floor;
|
||||
monName = GetMonSpecies(param_1->clientSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E8DE4[bVar2 % 13], gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E8DE4[bVar2 % 13], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y += 12;
|
||||
|
||||
sprintfStatic(buf_1, gUnknown_80E8FB0[bVar3 % 13], gFormatBuffer_Monsters);
|
||||
sprintfStatic(buf_1, gUnknown_80E8FB0[bVar3 % 13], gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(10, y, buf_1, param_1->unk0[0], 0);
|
||||
y -= 12;
|
||||
break;
|
||||
@@ -282,13 +280,13 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
PrintStringOnWindow(68, y, gUnknown_80E8AEC, param_1->unk0[0], 0);
|
||||
break;
|
||||
case MISSION_TYPE_DELIVER_ITEM:
|
||||
BufferItemName(gFormatBuffer_Items, param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8AFC, gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8AFC, gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(68, y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case MISSION_TYPE_FIND_ITEM:
|
||||
BufferItemName(gFormatBuffer_Items, param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8B10, gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], param_1->targetItem, NULL);
|
||||
sprintfStatic(buf_1, gUnknown_80E8B10, gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(68, y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case MISSION_TYPE_RESCUE_CLIENT:
|
||||
@@ -296,14 +294,14 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
break;
|
||||
case MISSION_TYPE_ESCORT_CLIENT:
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E8B2C, gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E8B2C, gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(68, y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case MISSION_TYPE_RESCUE_TARGET:
|
||||
monName = GetMonSpecies(param_1->targetSpecies);
|
||||
strcpy(gFormatBuffer_Monsters, monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E8B40, gFormatBuffer_Monsters);
|
||||
strcpy(gFormatBuffer_Monsters[0], monName);
|
||||
sprintfStatic(buf_1, gUnknown_80E8B40, gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(68, y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case MISSION_TYPE_SPECIAL_MISSION:
|
||||
@@ -314,7 +312,7 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
|
||||
y += 12;
|
||||
PrintStringOnWindow(10, y, gPlaceText, param_1->unk0[0], 0);
|
||||
|
||||
|
||||
if (param_1->mailMissionType == MISSION_TYPE_FIND_ITEM) {
|
||||
PrintDungeonLocationtoBuffer(buf_5, ¶m_1->unk8->dungeon);
|
||||
sprintfStatic(buf_1, gUnknown_80E8884, buf_5);
|
||||
@@ -347,14 +345,14 @@ void CreateRescueDescription(unkStruct_802C39C *param_1)
|
||||
break;
|
||||
case ITEM: // Item
|
||||
case ITEM_EXTRA: // Item + ?
|
||||
BufferItemName(gFormatBuffer_Items, param_1->rewardItem, NULL);
|
||||
sprintfStatic(buf_1, gMissionRewardText[param_1->rewardType], gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], param_1->rewardItem, NULL);
|
||||
sprintfStatic(buf_1, gMissionRewardText[param_1->rewardType], gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(68, y, buf_1, param_1->unk0[0], 0);
|
||||
break;
|
||||
case 4: // Friend Area
|
||||
PrintStringOnWindow(68, y, gMissionRewardText[param_1->rewardType], param_1->unk0[0], 0);
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
PrintStringOnWindow(68, y, gMissionRewardText[param_1->rewardType], param_1->unk0[0], 0);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#include "pokemon_news2.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B2CC *sUnknown_203B2CC = {0};
|
||||
static EWRAM_DATA_2 u16 sUnknown_203B2D0 = {0};
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
#include "pokemon_news2.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B2D4 *sUnknown_203B2D4 = {0};
|
||||
|
||||
|
||||
@@ -14,10 +14,8 @@
|
||||
#include "pokemon_mid.h"
|
||||
#include "pokemon_news3.h"
|
||||
#include "structs/str_802C39C.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
|
||||
extern u8 gFormatBuffer_Monsters[]; // 202DF98
|
||||
#include "text.h"
|
||||
#include "string_format.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B2D8 *sUnknown_203B2D8 = {0};
|
||||
static EWRAM_DATA_2 u16 sUnknown_203B2DC = {0};
|
||||
@@ -143,8 +141,8 @@ void CreateMailMenu(void)
|
||||
if (mail->mailType == MAIL_TYPE_UNK1) {
|
||||
y = sub_8013800(&sUnknown_203B2D8->unk4.s0.input, i);
|
||||
sub_803B6B0(10, y, 6, sUnknown_203B2D8->unk4.s0.unk34);
|
||||
PrintPokeNameToBuffer(gFormatBuffer_Monsters, GetPlayerPokemonStruct());
|
||||
sprintfStatic(buffer, GetPokemonMailHeadline(mail->unk4.dungeon.floor), gFormatBuffer_Monsters);
|
||||
PrintPokeNameToBuffer(gFormatBuffer_Monsters[0], GetPlayerPokemonStruct());
|
||||
sprintfStatic(buffer, GetPokemonMailHeadline(mail->unk4.dungeon.floor), gFormatBuffer_Monsters[0]);
|
||||
PrintStringOnWindow(21, y, buffer, sUnknown_203B2D8->unk4.s0.unk34, 0);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "structs/menu.h"
|
||||
#include "pokemon.h"
|
||||
#include "post_office_guide1.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
enum PostOfficeStates
|
||||
{
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
#include "menu_input.h"
|
||||
#include "pokemon_mail.h"
|
||||
#include "post_office_guide2.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
|
||||
extern u8 gFormatBuffer_Items[];
|
||||
#include "text.h"
|
||||
#include "string_format.h"
|
||||
|
||||
static EWRAM_DATA_2 unkStruct_203B330 *sUnknown_203B330 = {0};
|
||||
|
||||
@@ -146,13 +144,13 @@ static void DisplayMissionObjectives(void)
|
||||
|
||||
switch (jobInfo->missionType) {
|
||||
case WONDER_MAIL_MISSION_TYPE_DELIVER_ITEM:
|
||||
BufferItemName(gFormatBuffer_Items, jobInfo->targetItem, NULL);
|
||||
sprintfStatic(buffer1, sFmtBring, gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], jobInfo->targetItem, NULL);
|
||||
sprintfStatic(buffer1, sFmtBring, gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(40, yCoord, buffer1, sUnknown_203B330->unk10, 0);
|
||||
break;
|
||||
case WONDER_MAIL_MISSION_TYPE_FIND_ITEM:
|
||||
BufferItemName(gFormatBuffer_Items, jobInfo->targetItem, NULL);
|
||||
sprintfStatic(buffer1, sFmtFind, gFormatBuffer_Items);
|
||||
BufferItemName(gFormatBuffer_Items[0], jobInfo->targetItem, NULL);
|
||||
sprintfStatic(buffer1, sFmtFind, gFormatBuffer_Items[0]);
|
||||
PrintStringOnWindow(40, yCoord, buffer1, sUnknown_203B330->unk10, 0);
|
||||
break;
|
||||
case WONDER_MAIL_MISSION_TYPE_ESCORT_CLIENT:
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
#include "pokemon.h"
|
||||
#include "rescue_password_menu.h"
|
||||
#include "save.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
#define RESCUE_PASSWORD_SIZE 0x36
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "save.h"
|
||||
#include "save_menu.h"
|
||||
#include "sprite.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
static EWRAM_DATA_2 SaveMenuWork *sUnknown_203B364 = {0};
|
||||
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
#include "string_format.h"
|
||||
#include "bg_palette_buffer.h"
|
||||
#include "input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "game_options.h"
|
||||
#include "pokemon.h"
|
||||
#include "code_800D090.h"
|
||||
|
||||
102
src/text.c
102
src/text.c
@@ -1,7 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "text.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "decompress.h"
|
||||
#include "code_8009804.h"
|
||||
#include "code_800558C.h"
|
||||
@@ -17,22 +15,6 @@ struct CharMapStruct
|
||||
struct unkChar *unk4;
|
||||
};
|
||||
|
||||
extern s32 gCharHeight[2];
|
||||
extern u8 gDrawTextShadow;
|
||||
extern s32 gUnknown_202B020;
|
||||
extern s32 gUnknown_202B024;
|
||||
|
||||
extern vu32 gUnknown_20274B0;
|
||||
extern u32 gUnknown_20274B4[0xEC0];
|
||||
extern OpenedFile *gCharmapFiles[2]; // 202AFB4
|
||||
// u32 unused // 202AFBC
|
||||
extern UnkTextStruct2 gUnknown_202AFC0[4];
|
||||
extern u32 gTextShadowMask; // Some text color info is stored; retrieve via "& 0xF"
|
||||
extern u16 gUnknown_202B038[4][32][32];
|
||||
|
||||
// ?
|
||||
extern s16 gUnknown_3000E94[];
|
||||
|
||||
// data.s
|
||||
extern const UnkTextStruct2 gUnknown_80B857C[4];
|
||||
extern const u8 gKanjiA_file_string[]; // 80B87B4
|
||||
@@ -42,19 +24,17 @@ extern const u32 gFadeInDungeon[8];
|
||||
extern const u32 gUnknown_80B8804[4];
|
||||
extern const u32 gUnknown_80B86B4[][32];
|
||||
extern const u32 gUnknown_80B8814[];
|
||||
// system_sbin.s
|
||||
extern const struct FileArchive gSystemFileArchive;
|
||||
|
||||
// data.s
|
||||
extern const u32 gUnknown_80B853C[16];
|
||||
extern const struct unkShiftData gCharMasksOffsets[8];
|
||||
extern const u32 gUnknown_80B8814[];
|
||||
extern const struct unkStruct_80B8824 gUnknown_80B8824;
|
||||
extern const struct unkStruct_80B8848 gUnknown_80B8848;
|
||||
// system_sbin.s
|
||||
extern const struct FileArchive gSystemFileArchive;
|
||||
|
||||
// Todo fix gUnknown_3000E94 being accessed as s16/u8
|
||||
extern s16 gUnknown_3000E94[];
|
||||
extern u8 gUnknown_20274A5;
|
||||
|
||||
extern const struct unkChar gUnknown_80B86A4;
|
||||
extern const u32 gUnknown_80B8868[];
|
||||
|
||||
@@ -65,6 +45,16 @@ EWRAM_DATA u8 gUnknown_202749A[11] = {0};
|
||||
EWRAM_DATA bool8 gUnknown_20274A5 = FALSE;
|
||||
EWRAM_DATA static u8 sUnknown_20274A6[6] = {0};
|
||||
EWRAM_DATA static s32 sCurrentCharmap = 0;
|
||||
EWRAM_DATA static vu32 sUnknown_20274B0 = 0;
|
||||
EWRAM_DATA static u32 sUnknown_20274B4[0xEC0] = {0};
|
||||
EWRAM_DATA static OpenedFile *sCharmapFiles[3] = {NULL};
|
||||
EWRAM_DATA static UnkTextStruct2 sUnknown_202AFC0[4] = {0};
|
||||
EWRAM_DATA static s32 sUnknown_202B020 = 0;
|
||||
EWRAM_DATA static s32 sUnknown_202B024 = 0;
|
||||
EWRAM_DATA static s32 sCharHeight[2] = {0};
|
||||
EWRAM_DATA static u32 sTextShadowMask = 0; // Some text color info is stored; retrieve via "& 0xF"
|
||||
EWRAM_DATA static u8 sDrawTextShadow = 0;
|
||||
EWRAM_DATA ALIGNED(4) u16 gUnknown_202B038[4][32][32] = {0};
|
||||
|
||||
static void SaveUnkTextStructAndXXX_8006438(const UnkTextStruct2 *a0, bool8 a1, bool8 a2, UnkTextStruct2_sub *a3);
|
||||
static void sub_8006554(UnkTextStruct1 *a0, u32 *a1, u32 *a2, u16 *a3, u32 a4, const UnkTextStruct2 *a5, bool8 a6, u32 a7, UnkTextStruct2_sub *a8, u8 a9);
|
||||
@@ -102,12 +92,12 @@ void LoadCharmaps(void)
|
||||
int k;
|
||||
|
||||
sCurrentCharmap = 0;
|
||||
gCharmapFiles[0] = OpenFileAndGetFileDataPtr(gKanjiA_file_string, &gSystemFileArchive);
|
||||
gCharmapFiles[1] = OpenFileAndGetFileDataPtr(gKanjiB_file_string, &gSystemFileArchive);
|
||||
sCharmaps[0] = (void *) gCharmapFiles[0]->data;
|
||||
sCharmaps[1] = (void *) gCharmapFiles[1]->data;
|
||||
gCharHeight[0] = 11;
|
||||
gCharHeight[1] = 12;
|
||||
sCharmapFiles[0] = OpenFileAndGetFileDataPtr(gKanjiA_file_string, &gSystemFileArchive);
|
||||
sCharmapFiles[1] = OpenFileAndGetFileDataPtr(gKanjiB_file_string, &gSystemFileArchive);
|
||||
sCharmaps[0] = (void *) sCharmapFiles[0]->data;
|
||||
sCharmaps[1] = (void *) sCharmapFiles[1]->data;
|
||||
sCharHeight[0] = 11;
|
||||
sCharHeight[1] = 12;
|
||||
|
||||
for (k = 0; k < 4; k++) {
|
||||
gUnknown_2027370[k].unk4 = 0;
|
||||
@@ -127,21 +117,21 @@ void LoadCharmaps(void)
|
||||
}
|
||||
}
|
||||
|
||||
gDrawTextShadow = 1;
|
||||
gTextShadowMask = 0x88888888;
|
||||
sDrawTextShadow = 1;
|
||||
sTextShadowMask = 0x88888888;
|
||||
gUnknown_203B078 = NULL;
|
||||
gUnknown_20274A5 = FALSE;
|
||||
gUnknown_202B020 = 1;
|
||||
gUnknown_202B024 = 20;
|
||||
sUnknown_202B020 = 1;
|
||||
sUnknown_202B024 = 20;
|
||||
UpdateFadeInTile(0);
|
||||
}
|
||||
|
||||
u32 UpdateFadeInTile(u32 a0)
|
||||
{
|
||||
u32 r5 = gUnknown_20274B0;
|
||||
u32 r5 = sUnknown_20274B0;
|
||||
u32 *r4 = (u32 *)(VRAM + 0x4F40);
|
||||
const u32 *r2;
|
||||
gUnknown_20274B0 = a0;
|
||||
sUnknown_20274B0 = a0;
|
||||
|
||||
if (a0 == 0 || a0 == 2) {
|
||||
sub_800CDA8(2);
|
||||
@@ -152,7 +142,7 @@ u32 UpdateFadeInTile(u32 a0)
|
||||
r2 = gFadeInDungeon;
|
||||
}
|
||||
|
||||
gTextShadowMask = 0x88888888;
|
||||
sTextShadowMask = 0x88888888;
|
||||
*r4++ = *r2++;
|
||||
*r4++ = *r2++;
|
||||
*r4++ = *r2++;
|
||||
@@ -166,13 +156,13 @@ u32 UpdateFadeInTile(u32 a0)
|
||||
|
||||
u32 sub_80063B0(void)
|
||||
{
|
||||
return gUnknown_20274B0;
|
||||
return sUnknown_20274B0;
|
||||
}
|
||||
|
||||
UNUSED static u8 UnusedSetTextShadow(u8 a0)
|
||||
{
|
||||
u8 retval = gDrawTextShadow;
|
||||
gDrawTextShadow = a0;
|
||||
u8 retval = sDrawTextShadow;
|
||||
sDrawTextShadow = a0;
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -185,7 +175,7 @@ void SetCharacterMask(int a0)
|
||||
{
|
||||
u32 retval;
|
||||
if (a0 == 0) {
|
||||
gUnknown_20274B0;
|
||||
UNUSED u32 unusedVal = sUnknown_20274B0;
|
||||
retval = 0x88888888;
|
||||
}
|
||||
else {
|
||||
@@ -197,7 +187,7 @@ void SetCharacterMask(int a0)
|
||||
retval |= ((a0 & 0xF) << 24);
|
||||
retval |= ((a0 & 0xF) << 28);
|
||||
}
|
||||
gTextShadowMask = retval;
|
||||
sTextShadowMask = retval;
|
||||
}
|
||||
|
||||
void xxx_call_save_unk_text_struct_800641C(const UnkTextStruct2 *a0, bool8 a1, bool8 a2)
|
||||
@@ -222,10 +212,10 @@ static void SaveUnkTextStructAndXXX_8006438(const UnkTextStruct2 *a0, bool8 a1,
|
||||
sub_800898C();
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
gUnknown_202AFC0[i] = a0[i];
|
||||
sUnknown_202AFC0[i] = a0[i];
|
||||
|
||||
if (a0[i].unkC) {
|
||||
sub_8006554(gUnknown_2027370, (u32 *)VRAM, gUnknown_20274B4, &gUnknown_202B038[0][0][0], gUnknown_80B8804[i], a0 + i, a1, r9, a3, 0);
|
||||
sub_8006554(gUnknown_2027370, (u32 *)VRAM, sUnknown_20274B4, &gUnknown_202B038[0][0][0], gUnknown_80B8804[i], a0 + i, a1, r9, a3, 0);
|
||||
sub_80089AC(a0 + i, a3);
|
||||
r9 += a0[i].unkC * a0[i].unk10;
|
||||
}
|
||||
@@ -248,7 +238,7 @@ void RestoreUnkTextStruct_8006518(UnkTextStruct2 *unkData)
|
||||
{
|
||||
s32 iVar2;
|
||||
for (iVar2 = 0; iVar2 < 4; iVar2++)
|
||||
unkData[iVar2] = gUnknown_202AFC0[iVar2];
|
||||
unkData[iVar2] = sUnknown_202AFC0[iVar2];
|
||||
}
|
||||
|
||||
UNUSED static void nullsub_153(void)
|
||||
@@ -1491,7 +1481,7 @@ static u32 xxx_draw_char(struct UnkTextStruct1 *a0, s32 x, s32 y, u32 a3, u32 co
|
||||
local_3c = sp0->unk0;
|
||||
sp8 = sp0->unk0 - 3;
|
||||
|
||||
if (gDrawTextShadow != 0) {
|
||||
if (sDrawTextShadow != 0) {
|
||||
var_2C = (sp0->unkA >> 1) & 1;
|
||||
}
|
||||
else {
|
||||
@@ -1506,7 +1496,7 @@ static u32 xxx_draw_char(struct UnkTextStruct1 *a0, s32 x, s32 y, u32 a3, u32 co
|
||||
yDiv8 = y / 8;
|
||||
|
||||
if (yDiv8 < r5->unk8) {
|
||||
for (i = 0; i < gCharHeight[sCurrentCharmap]; i++) {
|
||||
for (i = 0; i < sCharHeight[sCurrentCharmap]; i++) {
|
||||
r2 = (local_44[1] << 0x10) | (local_44[0]);
|
||||
if (r2 != 0) {
|
||||
if (xDiv8 < r5->unk4) {
|
||||
@@ -1567,7 +1557,7 @@ static u32 xxx_draw_char(struct UnkTextStruct1 *a0, s32 x, s32 y, u32 a3, u32 co
|
||||
yDiv8 = y / 8;
|
||||
|
||||
if (yDiv8 < r5->unk8) {
|
||||
for (i = 0; i < gCharHeight[sCurrentCharmap]; i++) {
|
||||
for (i = 0; i < sCharHeight[sCurrentCharmap]; i++) {
|
||||
r4 = (local_44[1] << 0x10) | (local_44[0]);
|
||||
r2 = (0x11111111 & r4) + (sp18 & r4);
|
||||
|
||||
@@ -1575,12 +1565,12 @@ static u32 xxx_draw_char(struct UnkTextStruct1 *a0, s32 x, s32 y, u32 a3, u32 co
|
||||
r1 = ((local_3c[1] << 0x10) | local_3c[0]) << 4;
|
||||
r1 |= r4; // This doesn't really do anything since r4 bits are cleared, but it's needed to match.
|
||||
r1 &= ~(r4);
|
||||
r1 &= gTextShadowMask;
|
||||
r1 &= sTextShadowMask;
|
||||
r2 |= (r1);
|
||||
if (notFirstIteration) {
|
||||
r1 = (((sp8[1] << 0x10) | sp8[0]) << 4) ^ r4;
|
||||
r1 &= ~(r4);
|
||||
r2 |= (r1 & gTextShadowMask);
|
||||
r2 |= (r1 & sTextShadowMask);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1607,12 +1597,12 @@ static u32 xxx_draw_char(struct UnkTextStruct1 *a0, s32 x, s32 y, u32 a3, u32 co
|
||||
r1 = (local_3c[2] << 4) | ((local_3c[1] >> 0xC) & 0xF);
|
||||
r1 |= r4; // This doesn't really do anything since r4 bits are cleared, but it's needed to match.
|
||||
r1 &= ~(r4);
|
||||
r1 &= gTextShadowMask;
|
||||
r1 &= sTextShadowMask;
|
||||
r2 |= r1;
|
||||
if (notFirstIteration) {
|
||||
r1 = ((sp8[2] << 4) | ((sp8[1] >> 0xC) & 0xF)) ^ r4;
|
||||
r1 &= ~(r4);
|
||||
r1 &= gTextShadowMask;
|
||||
r1 &= sTextShadowMask;
|
||||
r2 |= (r1);
|
||||
}
|
||||
}
|
||||
@@ -1656,13 +1646,13 @@ static u32 xxx_draw_char(struct UnkTextStruct1 *a0, s32 x, s32 y, u32 a3, u32 co
|
||||
void sub_80078A4(u32 a0, s32 x, s32 y, s32 a3, u32 color)
|
||||
{
|
||||
sub_800792C(a0, x, y, a3, color);
|
||||
sub_800792C(a0, x, y + 1, a3, gTextShadowMask & 0xF);
|
||||
sub_800792C(a0, x, y + 1, a3, sTextShadowMask & 0xF);
|
||||
}
|
||||
|
||||
UNUSED static void sub_80078E8(u32 a0, s32 x, s32 y, s32 a3, u32 color)
|
||||
{
|
||||
nullsub_129(a0, x, y, a3, color);
|
||||
nullsub_129(a0, x, y + 1, a3, gTextShadowMask & 0xF);
|
||||
nullsub_129(a0, x, y + 1, a3, sTextShadowMask & 0xF);
|
||||
}
|
||||
|
||||
void sub_800792C(u32 a0, s32 x, s32 y, s32 a3, u32 color)
|
||||
@@ -3354,7 +3344,7 @@ static void sub_8009388(void)
|
||||
|
||||
gUnknown_202B038[0][0][0] = 0xF279;
|
||||
gUnknown_202B038[1][0][0] = 0xF27A;
|
||||
for (i = gUnknown_202B020; i < gUnknown_202B024; i++) {
|
||||
for (i = sUnknown_202B020; i < sUnknown_202B024; i++) {
|
||||
gUnknown_202B038[0][i][0] = 0xF279;
|
||||
gUnknown_202B038[1][i][0] = 0xF27A;
|
||||
for (j = 1; j < 32; j++) {
|
||||
@@ -3426,8 +3416,8 @@ UNUSED static void nullsub_173(void)
|
||||
|
||||
void sub_80095CC(s32 a0, s32 a1)
|
||||
{
|
||||
gUnknown_202B020 = a0;
|
||||
gUnknown_202B024 = a1;
|
||||
sUnknown_202B020 = a0;
|
||||
sUnknown_202B024 = a1;
|
||||
}
|
||||
|
||||
UNUSED static void nullsub_174(void)
|
||||
|
||||
@@ -20,8 +20,7 @@
|
||||
#include "save.h"
|
||||
#include "save_write.h"
|
||||
#include "text_util.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "thank_you_wonder_mail.h"
|
||||
#include "wonder_mail_4.h"
|
||||
#include "wonder_mail_5.h"
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
#include "menu_input.h"
|
||||
#include "other_menus2.h"
|
||||
#include "save_write.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "trade_items_menu.h"
|
||||
|
||||
static EWRAM_DATA_2 struct TradeItemsMenu *sTradeItemsMenu = {0};
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "sprite.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
#include "unk_menu_203B360.h"
|
||||
|
||||
// Size: 0x1B4. Similar to SaveMenuWork
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
#include "items.h"
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "wigglytuff_shop1.h"
|
||||
|
||||
static EWRAM_DATA_2 WigglytuffShop1Work *sWigglytuffShop1Work = {0};
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#include "menu_input.h"
|
||||
#include "pokemon.h"
|
||||
#include "pokemon_3.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "wigglytuff_shop2.h"
|
||||
|
||||
static EWRAM_DATA_2 WigglytuffShop2Work *sWigglytuffShop2Work = {0};
|
||||
@@ -114,10 +113,10 @@ static void PopulateWigglytuffShopFriendAreaInfoScreen(void)
|
||||
sub_808D930(buffer2, sWigglytuffShop2Work->friendAreaSpecies[i]);
|
||||
|
||||
switch (sWigglytuffShop2Work->pokemonStatus[i]) {
|
||||
case POKEMON_UNKNOWN:
|
||||
case POKEMON_UNKNOWN:
|
||||
PrintStringOnWindow(x, y, gCommonTripleQuestionMark[0], sWigglytuffShop2Work->unk74, 0);
|
||||
break;
|
||||
case POKEMON_SEEN:
|
||||
case POKEMON_SEEN:
|
||||
PrintStringOnWindow(x, y, buffer2, sWigglytuffShop2Work->unk74, 0);
|
||||
break;
|
||||
case POKEMON_RECRUITED:
|
||||
@@ -174,7 +173,7 @@ static void sub_8021A60(void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Return index of pokemon if in the friend area, else return -1 */
|
||||
/* Return index of pokemon if in the friend area, else return -1 */
|
||||
static s32 CheckSpeciesinWigglytuffFriendArea(s16 species)
|
||||
{
|
||||
s32 baseSpecies;
|
||||
|
||||
@@ -12,15 +12,11 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "wigglytuff_shop1.h"
|
||||
#include "wigglytuff_shop2.h"
|
||||
#include "wigglytuff_shop3.h"
|
||||
|
||||
extern u8 gSpeakerNameBuffer[];
|
||||
extern u8 gFormatBuffer_FriendArea[];
|
||||
|
||||
static EWRAM_DATA_2 WigglytuffShop3Work *sWigglytuffShop3Work = {0};
|
||||
|
||||
#include "data/wigglytuff_shop3.h"
|
||||
|
||||
@@ -18,8 +18,7 @@
|
||||
#include "rescue_password_menu.h"
|
||||
#include "save.h"
|
||||
#include "save_write.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "wonder_mail.h"
|
||||
#include "wonder_mail_4.h"
|
||||
#include "wonder_mail_5.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "pokemon_mail.h"
|
||||
#include "save.h"
|
||||
#include "save_write.h"
|
||||
#include "text1.h"
|
||||
#include "text.h"
|
||||
|
||||
struct unkStruct_203B2C8
|
||||
{
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
#include "globaldata.h"
|
||||
#include "code_802DE84.h"
|
||||
#include "memory.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "menu_input.h"
|
||||
#include "structs/str_802C39C.h"
|
||||
#include "common_strings.h"
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "pokemon.h"
|
||||
#include "pokemon_mail.h"
|
||||
#include "structs/str_802C39C.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "structs/struct_sub80095e4.h"
|
||||
#include "wonder_mail_4.h"
|
||||
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
#include "pokemon.h"
|
||||
#include "pokemon_mail.h"
|
||||
#include "structs/str_802C39C.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
|
||||
struct unkStruct_203B324
|
||||
{
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
#include "globaldata.h"
|
||||
#include "input.h"
|
||||
#include "memory.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "pokemon.h"
|
||||
#include "code_8094F88.h"
|
||||
#include "menu_input.h"
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "memory.h"
|
||||
#include "menu_input.h"
|
||||
#include "pokemon_mail.h"
|
||||
#include "text1.h"
|
||||
#include "text2.h"
|
||||
#include "text.h"
|
||||
#include "wonder_mail_802C10C.h"
|
||||
|
||||
static EWRAM_DATA_2 struct unkStruct_203B2E0 *gUnknown_203B2E0 = {0};
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user