mirror of
https://github.com/pret/pokeruby.git
synced 2026-09-12 13:07:27 -05:00
Sort includes
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "link.h"
|
||||
#include "main.h"
|
||||
#include "m4a.h"
|
||||
#include "main.h"
|
||||
#include "palette.h"
|
||||
#include "pokemon.h"
|
||||
#include "sound.h"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#include "global.h"
|
||||
#include "battle.h"
|
||||
#include "abilities.h"
|
||||
#include "asm.h"
|
||||
#include "battle.h"
|
||||
#include "battle_move_effects.h"
|
||||
#include "item.h"
|
||||
#include "pokemon.h"
|
||||
#include "rng.h"
|
||||
#include "abilities.h"
|
||||
#include "species.h"
|
||||
#include "item.h"
|
||||
#include "battle_move_effects.h"
|
||||
|
||||
#define AIScriptRead32(ptr) ((ptr)[0] | (ptr)[1] << 8 | (ptr)[2] << 16 | (ptr)[3] << 24)
|
||||
#define AIScriptRead16(ptr) ((ptr)[0] | (ptr)[1] << 8)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "task.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
#include "trig.h"
|
||||
|
||||
#define TASK gTasks[task]
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
#include "global.h"
|
||||
#include "battle_setup.h"
|
||||
#include "asm.h"
|
||||
#include "safari_zone.h"
|
||||
#include "weather.h"
|
||||
#include "palette.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "rom4.h"
|
||||
#include "battle.h"
|
||||
#include "event_data.h"
|
||||
#include "field_message_box.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "main.h"
|
||||
#include "species.h"
|
||||
#include "metatile_behavior.h"
|
||||
#include "palette.h"
|
||||
#include "rng.h"
|
||||
#include "rom4.h"
|
||||
#include "safari_zone.h"
|
||||
#include "script.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "species.h"
|
||||
#include "starter_choose.h"
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
#include "string_util.h"
|
||||
#include "rng.h"
|
||||
#include "event_data.h"
|
||||
#include "script.h"
|
||||
#include "field_message_box.h"
|
||||
#include "trainer.h"
|
||||
#include "starter_choose.h"
|
||||
#include "metatile_behavior.h"
|
||||
#include "weather.h"
|
||||
|
||||
#define NUM_TRAINER_EYE_TRAINERS 56
|
||||
#define TRAINER_REMATCH_STEPS 255
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
#include "berry.h"
|
||||
#include "asm.h"
|
||||
#include "item.h"
|
||||
#include "main.h"
|
||||
#include "text.h"
|
||||
#include "rng.h"
|
||||
#include "items.h"
|
||||
#include "main.h"
|
||||
#include "rng.h"
|
||||
#include "text.h"
|
||||
|
||||
#define FIRST_BERRY ITEM_CHERI_BERRY
|
||||
#define LAST_BERRY ITEM_ENIGMA_BERRY
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "asm.h"
|
||||
#include "berry.h"
|
||||
#include "decompress.h"
|
||||
#include "items.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
@@ -13,7 +14,6 @@
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
#include "items.h"
|
||||
|
||||
#define OFFSET_7B (123)
|
||||
#define FIRST_BERRY ITEM_CHERI_BERRY
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#include "global.h"
|
||||
#include "event_data.h"
|
||||
#include "flags.h"
|
||||
#include "asm.h"
|
||||
#include "event_data.h"
|
||||
#include "field_camera.h"
|
||||
#include "field_effect.h"
|
||||
#include "flags.h"
|
||||
#include "map_obj_lock.h"
|
||||
#include "sound.h"
|
||||
#include "menu.h"
|
||||
#include "script.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "species.h"
|
||||
#include "task.h"
|
||||
#include "menu.h"
|
||||
#include "text.h"
|
||||
|
||||
extern u8 gPlayerPartyCount;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
#include "global.h"
|
||||
#include "text.h"
|
||||
#include "string_util.h"
|
||||
#include "abilities.h"
|
||||
#include "battle.h"
|
||||
#include "berry.h"
|
||||
#include "event_data.h"
|
||||
#include "hold_effects.h"
|
||||
#include "item.h"
|
||||
#include "items.h"
|
||||
#include "main.h"
|
||||
#include "pokemon.h"
|
||||
#include "species.h"
|
||||
#include "main.h"
|
||||
#include "sprite.h"
|
||||
#include "berry.h"
|
||||
#include "item.h"
|
||||
#include "abilities.h"
|
||||
#include "hold_effects.h"
|
||||
#include "event_data.h"
|
||||
#include "battle.h"
|
||||
#include "items.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
|
||||
extern u8 gPlayerPartyCount;
|
||||
extern struct Pokemon gPlayerParty[6];
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#include "global.h"
|
||||
#include "clear_save_data_menu.h"
|
||||
#include "save.h"
|
||||
#include "task.h"
|
||||
#include "songs.h"
|
||||
#include "menu.h"
|
||||
#include "main.h"
|
||||
#include "sprite.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "save.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
|
||||
extern u8 gSystemText_ClearAllSaveDataPrompt[];
|
||||
extern u8 gSystemText_ClearingData[];
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include "global.h"
|
||||
#include "main.h"
|
||||
#include "rtc.h"
|
||||
#include "berry.h"
|
||||
#include "event_data.h"
|
||||
#include "lottery_corner.h"
|
||||
#include "berry.h"
|
||||
#include "main.h"
|
||||
#include "rom4.h"
|
||||
#include "rtc.h"
|
||||
#include "wallclock.h"
|
||||
|
||||
extern void sub_80FA220(u16);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "decompress.h"
|
||||
#include "species.h"
|
||||
#include "asm.h"
|
||||
#include "species.h"
|
||||
#include "text.h"
|
||||
|
||||
#define WRAM 0x02000000
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "event_data.h"
|
||||
#include "link.h"
|
||||
#include "rng.h"
|
||||
#include "text.h"
|
||||
#include "event_data.h"
|
||||
|
||||
extern u8 unk_2000000[];
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "global.h"
|
||||
#include "field_camera.h"
|
||||
#include "asm.h"
|
||||
#include "asm_fieldmap.h"
|
||||
#include "berry.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "asm_fieldmap.h"
|
||||
#include "sprite.h"
|
||||
#include "text.h"
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "task.h"
|
||||
#include "field_camera.h"
|
||||
#include "metatile_behavior.h"
|
||||
#include "task.h"
|
||||
|
||||
struct DoorGraphics
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "field_effect.h"
|
||||
#include "weather.h"
|
||||
#include "sprite.h"
|
||||
#include "text.h"
|
||||
#include "weather.h"
|
||||
|
||||
typedef bool8 (*FldEffCmd)(u8 **, u32 *);
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "sprite.h"
|
||||
#include "asm_fieldmap.h"
|
||||
#include "field_effect.h"
|
||||
#include "sprite.h"
|
||||
|
||||
typedef void (*SpriteStepFunc)(struct Sprite *sprite, u8 dir);
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "global.h"
|
||||
#include "field_message_box.h"
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
#include "text_window.h"
|
||||
#include "task.h"
|
||||
#include "string_util.h"
|
||||
#include "field_message_box.h"
|
||||
|
||||
extern struct Window gFieldMessageBoxWindow;
|
||||
extern u16 gMenuTextWindowContentTileOffset;
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
#include "global.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "asm.h"
|
||||
#include "field_map_obj.h"
|
||||
#include "rom4.h"
|
||||
#include "asm_fieldmap.h"
|
||||
#include "event_data.h"
|
||||
#include "field_effect.h"
|
||||
#include "field_map_obj.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "metatile_behavior.h"
|
||||
#include "rng.h"
|
||||
#include "rom4.h"
|
||||
#include "script.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "task.h"
|
||||
#include "field_effect.h"
|
||||
#include "wild_encounter.h"
|
||||
#include "asm_fieldmap.h"
|
||||
#include "metatile_behavior.h"
|
||||
|
||||
extern u8 gOtherText_OhABite[];
|
||||
extern u8 gOtherText_PokeOnHook[];
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#include "global.h"
|
||||
#include "field_special_scene.h"
|
||||
#include "asm.h"
|
||||
#include "event_data.h"
|
||||
#include "field_camera.h"
|
||||
#include "palette.h"
|
||||
#include "task.h"
|
||||
#include "rom4.h"
|
||||
#include "script.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "field_camera.h"
|
||||
#include "rom4.h"
|
||||
#include "event_data.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
|
||||
extern s8 gTruckCamera_HorizontalTable[];
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "field_effect.h"
|
||||
#include "asm.h"
|
||||
#include "field_effect.h"
|
||||
#include "pokemon.h"
|
||||
#include "script.h"
|
||||
#include "task.h"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "field_effect.h"
|
||||
#include "rom4.h"
|
||||
#include "asm.h"
|
||||
#include "field_effect.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "rom4.h"
|
||||
|
||||
extern void sub_8087BA8(void);
|
||||
|
||||
|
||||
12
src/intro.c
12
src/intro.c
@@ -1,21 +1,21 @@
|
||||
#include "global.h"
|
||||
#include "intro.h"
|
||||
#include "asm.h"
|
||||
#include "gba/m4a_internal.h"
|
||||
#include "m4a.h"
|
||||
#include "libgncmultiboot.h"
|
||||
#include "save.h"
|
||||
#include "decompress.h"
|
||||
#include "title_screen.h"
|
||||
#include "new_game.h"
|
||||
#include "gba/m4a_internal.h"
|
||||
#include "libgncmultiboot.h"
|
||||
#include "link.h"
|
||||
#include "m4a.h"
|
||||
#include "main.h"
|
||||
#include "new_game.h"
|
||||
#include "palette.h"
|
||||
#include "rng.h"
|
||||
#include "save.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "species.h"
|
||||
#include "task.h"
|
||||
#include "title_screen.h"
|
||||
#include "trig.h"
|
||||
|
||||
extern void *species_and_otid_get_pal(/*TODO: arg types*/);
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
#include "global.h"
|
||||
#include "task.h"
|
||||
#include "item.h"
|
||||
#include "palette.h"
|
||||
#include "weather.h"
|
||||
#include "string_util.h"
|
||||
#include "menu.h"
|
||||
#include "mail.h"
|
||||
#include "asm.h"
|
||||
#include "rom4.h"
|
||||
#include "metatile_behavior.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "event_data.h"
|
||||
#include "map_obj_lock.h"
|
||||
#include "script.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "sound.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "item.h"
|
||||
#include "mail.h"
|
||||
#include "map_obj_lock.h"
|
||||
#include "menu.h"
|
||||
#include "metatile_behavior.h"
|
||||
#include "palette.h"
|
||||
#include "rom4.h"
|
||||
#include "script.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "weather.h"
|
||||
|
||||
extern void (* const gExitToOverworldFuncList[])();
|
||||
extern void (* gUnknown_03005D00)(u8);
|
||||
|
||||
14
src/link.c
14
src/link.c
@@ -1,17 +1,17 @@
|
||||
#include "global.h"
|
||||
#include "link.h"
|
||||
#include "asm.h"
|
||||
#include "battle.h"
|
||||
#include "main.h"
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
#include "sprite.h"
|
||||
#include "songs.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "rng.h"
|
||||
#include "menu.h"
|
||||
#include "sound.h"
|
||||
#include "save.h"
|
||||
#include "battle.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
|
||||
#define SIO_MULTI_CNT ((struct SioMultiCnt *)REG_ADDR_SIOCNT)
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include "global.h"
|
||||
#include "lottery_corner.h"
|
||||
#include "rng.h"
|
||||
#include "string_util.h"
|
||||
#include "event_data.h"
|
||||
#include "species.h"
|
||||
#include "text.h"
|
||||
#include "items.h"
|
||||
#include "rng.h"
|
||||
#include "species.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
|
||||
extern u16 gScriptResult;
|
||||
extern u16 gSpecialVar_0x8004;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "mail.h"
|
||||
#include "asm.h"
|
||||
#include "items.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "rom4.h"
|
||||
@@ -8,7 +9,6 @@
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
#include "items.h"
|
||||
|
||||
struct UnkMailStruct
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "main_menu.h"
|
||||
#include "asm.h"
|
||||
#include "decompress.h"
|
||||
#include "event_data.h"
|
||||
#include "menu.h"
|
||||
#include "mystery_event_menu.h"
|
||||
#include "option_menu.h"
|
||||
@@ -16,7 +17,6 @@
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
#include "title_screen.h"
|
||||
#include "event_data.h"
|
||||
|
||||
#define BirchSpeechUpdateWindowText() ((u8)MenuUpdateWindowText_OverrideLineLength(24))
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "menu.h"
|
||||
#include "event_data.h"
|
||||
#include "task.h"
|
||||
#include "asm.h"
|
||||
#include "event_data.h"
|
||||
#include "menu.h"
|
||||
#include "task.h"
|
||||
|
||||
EWRAM_DATA static u8 sTaskId = 0;
|
||||
|
||||
|
||||
10
src/menu.c
10
src/menu.c
@@ -1,13 +1,13 @@
|
||||
#include "global.h"
|
||||
#include "menu.h"
|
||||
#include "main.h"
|
||||
#include "text.h"
|
||||
#include "songs.h"
|
||||
#include "text_window.h"
|
||||
#include "sound.h"
|
||||
#include "menu_cursor.h"
|
||||
#include "map_obj_lock.h"
|
||||
#include "menu_cursor.h"
|
||||
#include "script.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "text.h"
|
||||
#include "text_window.h"
|
||||
|
||||
struct Menu
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "menu_cursor.h"
|
||||
#include "sprite.h"
|
||||
#include "palette.h"
|
||||
#include "sprite.h"
|
||||
|
||||
extern struct SpriteSheet gUnknown_0842F140[];
|
||||
extern struct SpriteSheet gUnknown_0842F1C0[];
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include "global.h"
|
||||
#include "mori_debug_menu.h"
|
||||
#include "asm.h"
|
||||
#include "start_menu.h"
|
||||
#include "menu.h"
|
||||
#include "main.h"
|
||||
#include "string_util.h"
|
||||
#include "link.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "start_menu.h"
|
||||
#include "string_util.h"
|
||||
|
||||
#define SIO_MULTI_CNT ((struct SioMultiCnt *)REG_ADDR_SIOCNT)
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
#include "global.h"
|
||||
#include "sprite.h"
|
||||
#include "menu.h"
|
||||
#include "mystery_event_menu.h"
|
||||
#include "asm.h"
|
||||
#include "link.h"
|
||||
#include "text.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "task.h"
|
||||
#include "string_util.h"
|
||||
#include "save.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "save.h"
|
||||
#include "asm.h"
|
||||
#include "mystery_event_menu.h"
|
||||
#include "sprite.h"
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
|
||||
extern u8 unk_2000000[];
|
||||
extern u8 gUnknown_02039338;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "global.h"
|
||||
#include "text.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
|
||||
void PadNameString(u8 *a1, u8 a2)
|
||||
{
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
#include "new_game.h"
|
||||
#include "asm.h"
|
||||
#include "berry.h"
|
||||
#include "play_time.h"
|
||||
#include "pokemon_size_record.h"
|
||||
#include "script.h"
|
||||
#include "rom4.h"
|
||||
#include "pokedex.h"
|
||||
#include "lottery_corner.h"
|
||||
#include "rng.h"
|
||||
#include "rtc.h"
|
||||
#include "event_data.h"
|
||||
#include "lottery_corner.h"
|
||||
#include "play_time.h"
|
||||
#include "pokedex.h"
|
||||
#include "pokemon_size_record.h"
|
||||
#include "rng.h"
|
||||
#include "rom4.h"
|
||||
#include "rtc.h"
|
||||
#include "script.h"
|
||||
|
||||
extern u8 gUnknown_020297EC;
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#include "global.h"
|
||||
#include "item.h"
|
||||
#include "task.h"
|
||||
#include "menu.h"
|
||||
#include "sound.h"
|
||||
#include "main.h"
|
||||
#include "script.h"
|
||||
#include "palette.h"
|
||||
#include "weather.h"
|
||||
#include "asm.h"
|
||||
#include "item.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "script.h"
|
||||
#include "sound.h"
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "weather.h"
|
||||
|
||||
extern void DisplayItemMessageOnField(u8, u8*, TaskFunc, u16);
|
||||
extern void ItemStorageMenuProcessInput(u8);
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
#include "global.h"
|
||||
#include "pokedex.h"
|
||||
#include "asm.h"
|
||||
#include "gba/m4a_internal.h"
|
||||
#include "string_util.h"
|
||||
#include "m4a.h"
|
||||
#include "decompress.h"
|
||||
#include "event_data.h"
|
||||
#include "gba/m4a_internal.h"
|
||||
#include "m4a.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "rng.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "event_data.h"
|
||||
|
||||
// I'm #define-ing these just for now so I can keep using the old unkXXX member names
|
||||
#define unk60E selectedPokemon
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "text.h"
|
||||
#include "string_util.h"
|
||||
#include "items.h"
|
||||
#include "main.h"
|
||||
#include "pokemon.h"
|
||||
#include "rng.h"
|
||||
#include "rom4.h"
|
||||
#include "species.h"
|
||||
#include "main.h"
|
||||
#include "rng.h"
|
||||
#include "sprite.h"
|
||||
#include "items.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
|
||||
//Extracts the upper 16 bits of a 32-bit number
|
||||
#define HIHALF(n) (((n) & 0xFFFF0000) >> 16)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "text.h"
|
||||
#include "string_util.h"
|
||||
#include "event_data.h"
|
||||
#include "main.h"
|
||||
#include "pokemon.h"
|
||||
#include "rng.h"
|
||||
#include "species.h"
|
||||
#include "main.h"
|
||||
#include "sprite.h"
|
||||
#include "event_data.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
|
||||
extern u8 gPlayerPartyCount;
|
||||
extern struct Pokemon gPlayerParty[6];
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "text.h"
|
||||
#include "string_util.h"
|
||||
#include "pokemon.h"
|
||||
#include "rng.h"
|
||||
#include "species.h"
|
||||
#include "main.h"
|
||||
#include "sprite.h"
|
||||
#include "event_data.h"
|
||||
#include "rtc.h"
|
||||
#include "item.h"
|
||||
#include "items.h"
|
||||
#include "main.h"
|
||||
#include "pokemon.h"
|
||||
#include "rng.h"
|
||||
#include "rtc.h"
|
||||
#include "species.h"
|
||||
#include "sprite.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
|
||||
#define EVO_FRIENDSHIP 0x0001 // Pokémon levels up with friendship ≥ 220
|
||||
#define EVO_FRIENDSHIP_DAY 0x0002 // Pokémon levels up during the day with friendship ≥ 220
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "global.h"
|
||||
#include "pokemon_size_record.h"
|
||||
#include "string_util.h"
|
||||
#include "species.h"
|
||||
#include "text.h"
|
||||
#include "event_data.h"
|
||||
#include "species.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
|
||||
extern u16 SpeciesToNationalPokedexNum(u16);
|
||||
extern u16 GetPokedexHeightWeight(u16, u8);
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "link.h"
|
||||
#include "menu.h"
|
||||
#include "pokemon.h"
|
||||
#include "string_util.h"
|
||||
#include "link.h"
|
||||
|
||||
extern struct Pokemon *unk_2018000;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "record_mixing.h"
|
||||
#include "asm.h"
|
||||
#include "event_data.h"
|
||||
#include "link.h"
|
||||
#include "menu.h"
|
||||
#include "rom4.h"
|
||||
@@ -9,7 +10,6 @@
|
||||
#include "sound.h"
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "event_data.h"
|
||||
|
||||
extern void *recordMixingSecretBases;
|
||||
extern void *recordMixingTvShows;
|
||||
|
||||
@@ -4,17 +4,19 @@
|
||||
#include "asm_fieldmap.h"
|
||||
#include "battle_setup.h"
|
||||
#include "berry.h"
|
||||
#include "event_data.h"
|
||||
#include "field_camera.h"
|
||||
#include "field_effect.h"
|
||||
#include "field_map_obj.h"
|
||||
#include "field_message_box.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "event_data.h"
|
||||
#include "field_special_scene.h"
|
||||
#include "heal_location.h"
|
||||
#include "link.h"
|
||||
#include "load_save.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "metatile_behavior.h"
|
||||
#include "new_game.h"
|
||||
#include "palette.h"
|
||||
#include "play_time.h"
|
||||
@@ -26,10 +28,8 @@
|
||||
#include "start_menu.h"
|
||||
#include "task.h"
|
||||
#include "tileset_anim.h"
|
||||
#include "field_special_scene.h"
|
||||
#include "weather.h"
|
||||
#include "wild_encounter.h"
|
||||
#include "metatile_behavior.h"
|
||||
|
||||
#ifdef SAPPHIRE
|
||||
#define LEGENDARY_MUSIC BGM_OOAME // Heavy Rain
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "global.h"
|
||||
#include "global.fieldmap.h"
|
||||
#include "gba/syscall.h"
|
||||
#include "weather.h"
|
||||
#include "task.h"
|
||||
#include "global.fieldmap.h"
|
||||
#include "script.h"
|
||||
#include "task.h"
|
||||
#include "weather.h"
|
||||
|
||||
void palette_bg_fill_white(void);
|
||||
void palette_bg_fill_black(void);
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#include "global.h"
|
||||
#include "safari_zone.h"
|
||||
#include "asm.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "event_data.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "main.h"
|
||||
#include "rom4.h"
|
||||
#include "script.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
#include "rom4.h"
|
||||
|
||||
struct PokeblockFeeder
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include "global.h"
|
||||
#include "gba/gba.h"
|
||||
#include "save.h"
|
||||
#include "asm.h"
|
||||
#include "gba/gba.h"
|
||||
#include "gba/flash_internal.h"
|
||||
#include "load_save.h"
|
||||
#include "rom4.h"
|
||||
#include "gba/flash_internal.h"
|
||||
#include "save_failed_screen.h"
|
||||
|
||||
extern struct SaveSection unk_2000000;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "gba/flash_internal.h"
|
||||
#include "m4a.h"
|
||||
#include "main.h"
|
||||
#include "sprite.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "save.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
#include "text.h"
|
||||
#include "menu.h"
|
||||
#include "save.h"
|
||||
#include "m4a.h"
|
||||
#include "gba/flash_internal.h"
|
||||
#include "asm.h"
|
||||
|
||||
// In English 1.0, the text window is too small, causing text to overflow.
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include "global.h"
|
||||
#include "save_menu_util.h"
|
||||
#include "asm.h"
|
||||
#include "menu.h"
|
||||
#include "event_data.h"
|
||||
#include "string_util.h"
|
||||
#include "menu.h"
|
||||
#include "pokedex.h"
|
||||
#include "string_util.h"
|
||||
|
||||
extern u8 gOtherText_Player[];
|
||||
extern u8 gOtherText_Badges[];
|
||||
|
||||
26
src/scrcmd.c
26
src/scrcmd.c
@@ -1,28 +1,28 @@
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "asm_fieldmap.h"
|
||||
#include "battle_setup.h"
|
||||
#include "berry.h"
|
||||
#include "coins.h"
|
||||
#include "decoration.h"
|
||||
#include "event_data.h"
|
||||
#include "field_effect.h"
|
||||
#include "field_message_box.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "item.h"
|
||||
#include "script.h"
|
||||
#include "rng.h"
|
||||
#include "palette.h"
|
||||
#include "rtc.h"
|
||||
#include "pokemon.h"
|
||||
#include "asm_fieldmap.h"
|
||||
#include "main.h"
|
||||
#include "map_obj_lock.h"
|
||||
#include "menu.h"
|
||||
#include "money.h"
|
||||
#include "decoration.h"
|
||||
#include "field_message_box.h"
|
||||
#include "palette.h"
|
||||
#include "pokemon.h"
|
||||
#include "rng.h"
|
||||
#include "rom4.h"
|
||||
#include "rtc.h"
|
||||
#include "script.h"
|
||||
#include "sound.h"
|
||||
#include "string_util.h"
|
||||
#include "event_data.h"
|
||||
#include "rom4.h"
|
||||
#include "weather.h"
|
||||
#include "map_obj_lock.h"
|
||||
#include "coins.h"
|
||||
#include "field_effect.h"
|
||||
|
||||
typedef u16 (*SpecialFunc)(void);
|
||||
typedef void (*NativeFunc)(void);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include "global.h"
|
||||
#include "task.h"
|
||||
#include "event_data.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "script.h"
|
||||
#include "sound.h"
|
||||
#include "event_data.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
|
||||
struct MultichoiceListStruct
|
||||
{
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#include "global.h"
|
||||
#include "sound.h"
|
||||
#include "asm.h"
|
||||
#include "gba/m4a_internal.h"
|
||||
#include "task.h"
|
||||
#include "songs.h"
|
||||
#include "m4a.h"
|
||||
#include "battle.h"
|
||||
#include "gba/m4a_internal.h"
|
||||
#include "m4a.h"
|
||||
#include "songs.h"
|
||||
#include "task.h"
|
||||
|
||||
struct Fanfare
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "sprite.h"
|
||||
#include "main.h"
|
||||
#include "palette.h"
|
||||
#include "menu_cursor.h"
|
||||
#include "palette.h"
|
||||
|
||||
#define MAX_SPRITE_COPY_REQUESTS 64
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "start_menu.h"
|
||||
#include "asm.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "event_data.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "load_save.h"
|
||||
#include "main.h"
|
||||
#include "map_obj_lock.h"
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
#include "global.h"
|
||||
#include "starter_choose.h"
|
||||
#include "asm.h"
|
||||
#include "decompress.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "palette.h"
|
||||
#include "pokedex.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "sprite.h"
|
||||
#include "string_util.h"
|
||||
#include "task.h"
|
||||
#include "trig.h"
|
||||
#include "decompress.h"
|
||||
#include "sprite.h"
|
||||
|
||||
struct MonCoords
|
||||
{
|
||||
|
||||
10
src/text.c
10
src/text.c
@@ -1,11 +1,11 @@
|
||||
#include "global.h"
|
||||
#include "text.h"
|
||||
#include "main.h"
|
||||
#include "string_util.h"
|
||||
#include "songs.h"
|
||||
#include "palette.h"
|
||||
#include "sound.h"
|
||||
#include "battle.h"
|
||||
#include "main.h"
|
||||
#include "palette.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "string_util.h"
|
||||
|
||||
enum
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "global.h"
|
||||
#include "text_window.h"
|
||||
#include "main.h"
|
||||
#include "text.h"
|
||||
#include "palette.h"
|
||||
#include "text.h"
|
||||
|
||||
#define STD_MSG_BOX_LEFT 0
|
||||
#define STD_MSG_BOX_TOP 14
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
#include "title_screen.h"
|
||||
#include "asm.h"
|
||||
#include "clear_save_data_menu.h"
|
||||
#include "m4a.h"
|
||||
#include "main_menu.h"
|
||||
#include "intro.h"
|
||||
#include "decompress.h"
|
||||
#include "event_data.h"
|
||||
#include "gba/m4a_internal.h"
|
||||
#include "intro.h"
|
||||
#include "m4a.h"
|
||||
#include "main.h"
|
||||
#include "main_menu.h"
|
||||
#include "palette.h"
|
||||
#include "sound.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
#include "decompress.h"
|
||||
#include "event_data.h"
|
||||
|
||||
extern u8 gReservedSpritePaletteCount;
|
||||
extern struct MusicPlayerInfo gMPlay_BGM;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#include "global.h"
|
||||
#include "trainer_see.h"
|
||||
#include "asm.h"
|
||||
#include "battle_setup.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "field_map_obj.h"
|
||||
#include "asm_fieldmap.h"
|
||||
#include "task.h"
|
||||
#include "sprite.h"
|
||||
#include "battle_setup.h"
|
||||
#include "field_effect.h"
|
||||
#include "field_map_obj.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "script.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
|
||||
extern bool8 (*gIsTrainerInRange[])(struct MapObject *, u16, s16, s16);
|
||||
extern bool8 (*gTrainerSeeFuncList[])(u8, struct Task *, struct MapObject *);
|
||||
|
||||
1
src/tv.c
1
src/tv.c
@@ -3,7 +3,6 @@
|
||||
#include "event_data.h"
|
||||
#include "field_message_box.h"
|
||||
#include "flags.h"
|
||||
#include "global.h"
|
||||
#include "rng.h"
|
||||
#include "string_util.h"
|
||||
#include "text.h"
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
#include "palette.h"
|
||||
#include "rtc.h"
|
||||
#include "songs.h"
|
||||
#include "sound.h"
|
||||
#include "task.h"
|
||||
#include "trig.h"
|
||||
#include "sound.h"
|
||||
|
||||
extern u16 gSpecialVar_0x8004;
|
||||
extern u16 gMiscClockMale_Pal[];
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include "global.h"
|
||||
#include "weather.h"
|
||||
#include "asm.h"
|
||||
#include "task.h"
|
||||
#include "sprite.h"
|
||||
#include "palette.h"
|
||||
#include "sprite.h"
|
||||
#include "task.h"
|
||||
|
||||
struct Weather {
|
||||
u8 filler_000[0x200];
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#include "global.h"
|
||||
#include "wild_encounter.h"
|
||||
#include "asm.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "safari_zone.h"
|
||||
#include "battle_setup.h"
|
||||
#include "abilities.h"
|
||||
#include "rng.h"
|
||||
#include "script.h"
|
||||
#include "asm.h"
|
||||
#include "battle_setup.h"
|
||||
#include "event_data.h"
|
||||
#include "rom4.h"
|
||||
#include "field_player_avatar.h"
|
||||
#include "metatile_behavior.h"
|
||||
#include "rng.h"
|
||||
#include "rom4.h"
|
||||
#include "safari_zone.h"
|
||||
#include "script.h"
|
||||
|
||||
struct WildPokemon
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user