rename rng.c to random.c and rom4.c to overworld.c

This commit is contained in:
camthesaxman 2017-12-05 12:27:33 -06:00
parent fd75493bc6
commit 00896cb3b5
38 changed files with 65 additions and 65 deletions

View File

@ -1,5 +1,5 @@
#ifndef GUARD_RNG_H
#define GUARD_RNG_H
#ifndef GUARD_RANDOM_H
#define GUARD_RANDOM_H
extern u32 gRngValue;
extern u32 gRng2Value;
@ -15,4 +15,4 @@ u16 Random2(void);
void SeedRng(u16 seed);
void SeedRng2(u16 seed);
#endif // GUARD_RNG_H
#endif // GUARD_RANDOM_H

View File

@ -74,7 +74,7 @@ SECTIONS {
src/pokemon_3.o(.text);
asm/pokemon_3.o(.text);
src/trig.o(.text);
src/rng.o(.text);
src/random.o(.text);
src/util.o(.text);
src/blend_palette.o(.text);
src/daycare.o(.text);
@ -87,7 +87,7 @@ SECTIONS {
src/berry_blender.o(.text);
src/play_time.o(.text);
src/new_game.o(.text);
asm/rom4.o(.text);
asm/overworld.o(.text);
asm/fieldmap.o(.text);
src/metatile_behavior.o(.text);
asm/field_camera.o(.text);
@ -349,7 +349,7 @@ SECTIONS {
data/trade.o(.rodata);
src/berry_blender.o(.rodata);
src/new_game.o(.rodata);
data/rom4.o(.rodata);
data/overworld.o(.rodata);
data/tilesets.o(.rodata);
data/maps.o(.rodata);
data/fieldmap.o(.rodata);

View File

@ -25,7 +25,7 @@
#include "event_data.h"
#include "m4a.h"
#include "window.h"
#include "rng.h"
#include "random.h"
#include "songs.h"
#include "sound.h"
#include "battle_message.h"

View File

@ -4,7 +4,7 @@
#include "battle.h"
#include "species.h"
#include "abilities.h"
#include "rng.h"
#include "random.h"
#include "item.h"
#include "battle_move_effects.h"
#include "moves.h"

View File

@ -5,7 +5,7 @@
#include "moves.h"
#include "pokemon.h"
#include "species.h"
#include "rng.h"
#include "random.h"
#include "util.h"
#include "items.h"
#include "pokemon_item_effects.h"

View File

@ -23,7 +23,7 @@
#include "string_util.h"
#include "bg.h"
#include "reshow_battle_screen.h"
#include "rng.h"
#include "random.h"
#include "pokeball.h"
#include "data2.h"

View File

@ -22,7 +22,7 @@
#include "string_util.h"
#include "bg.h"
#include "reshow_battle_screen.h"
#include "rng.h"
#include "random.h"
#include "pokeball.h"
#include "data2.h"

View File

@ -22,7 +22,7 @@
#include "string_util.h"
#include "bg.h"
#include "reshow_battle_screen.h"
#include "rng.h"
#include "random.h"
#include "pokeball.h"
#include "data2.h"
#include "party_menu.h"

View File

@ -6,7 +6,7 @@
#include "battle_interface.h"
#include "main.h"
#include "malloc.h"
#include "rng.h"
#include "random.h"
#include "util.h"
#include "pokemon.h"
#include "moves.h"

View File

@ -12,7 +12,7 @@
#include "util.h"
#include "pokemon.h"
#include "calculate_base_damage.h"
#include "rng.h"
#include "random.h"
#include "battle_controllers.h"
#include "battle_interface.h"
#include "species.h"

View File

@ -10,7 +10,7 @@
#include "util.h"
#include "battle_move_effects.h"
#include "battle_scripts.h"
#include "rng.h"
#include "random.h"
#include "text.h"
#include "string_util.h"
#include "battle_message.h"

View File

@ -5,7 +5,7 @@
#include "pokemon.h"
#include "event_data.h"
#include "abilities.h"
#include "rng.h"
#include "random.h"
#include "battle_scripts.h"
extern struct BattlePokemon gBattleMons[BATTLE_BANKS_COUNT];

View File

@ -4,7 +4,7 @@
#include "item.h"
#include "items.h"
#include "text.h"
#include "rng.h"
#include "random.h"
#include "event_data.h"
#include "fieldmap.h"

View File

@ -23,7 +23,7 @@
#include "items.h"
#include "string_util.h"
#include "international_string_util.h"
#include "rng.h"
#include "random.h"
#include "menu.h"
#include "pokeblock.h"
#include "trig.h"

View File

@ -7,7 +7,7 @@
#include "mail.h"
#include "pokemon_storage_system.h"
#include "event_data.h"
#include "rng.h"
#include "random.h"
#include "main.h"
#include "moves.h"
#include "egg_hatch.h"

View File

@ -16,7 +16,7 @@
#include "string_util.h"
#include "menu.h"
#include "trig.h"
#include "rng.h"
#include "random.h"
#include "malloc.h"
#include "dma3.h"
#include "gpu_regs.h"

View File

@ -2,7 +2,7 @@
#include "evolution_graphics.h"
#include "sprite.h"
#include "trig.h"
#include "rng.h"
#include "random.h"
#include "decompress.h"
#include "task.h"
#include "sound.h"

View File

@ -4,7 +4,7 @@
#include "malloc.h"
#include "sprite.h"
#include "overworld.h"
#include "rng.h"
#include "random.h"
#include "event_scripts.h"
#include "berry.h"
#include "palette.h"

View File

@ -22,7 +22,7 @@
#include "international_string_util.h"
#include "unknown_task.h"
#include "trig.h"
#include "rng.h"
#include "random.h"
#include "event_data.h"
struct HallofFameMon

View File

@ -8,7 +8,7 @@
#include "rom6.h"
#include "event_data.h"
#include "script.h"
#include "rng.h"
#include "random.h"
#include "string_util.h"
#include "item.h"
#include "items.h"

View File

@ -3,7 +3,7 @@
#include "load_save.h"
#include "main.h"
#include "pokemon.h"
#include "rng.h"
#include "random.h"
extern void* gUnknown_0203CF5C;

View File

@ -3,7 +3,7 @@
#include "event_data.h"
#include "pokemon.h"
#include "items.h"
#include "rng.h"
#include "random.h"
#include "species.h"
#include "string_util.h"
#include "text.h"

View File

@ -2,7 +2,7 @@
#include "main.h"
#include "m4a.h"
#include "rtc.h"
#include "rng.h"
#include "random.h"
#include "dma3.h"
#include "gba/flash_internal.h"
#include "battle.h"

View File

@ -1,6 +1,6 @@
#include "global.h"
#include "new_game.h"
#include "rng.h"
#include "random.h"
#include "pokemon.h"
#include "roamer.h"
#include "pokemon_size_record.h"

View File

@ -1,6 +1,6 @@
#include "global.h"
#include "pokemon.h"
#include "rng.h"
#include "random.h"
#include "main.h"
#include "items.h"
#include "string_util.h"

View File

@ -2,7 +2,7 @@
#include "pokemon.h"
#include "battle.h"
#include "event_data.h"
#include "rng.h"
#include "random.h"
#include "sprite.h"
#include "species.h"
#include "text.h"

View File

@ -10,7 +10,7 @@
#include "species.h"
#include "link.h"
#include "hold_effects.h"
#include "rng.h"
#include "random.h"
#include "trainer_classes.h"
#include "trainer_ids.h"
#include "songs.h"

View File

@ -1,5 +1,5 @@
#include "global.h"
#include "rng.h"
#include "random.h"
// The number 1103515245 comes from the example implementation of rand and srand
// in the ISO C standard.

View File

@ -3,7 +3,7 @@
#include "recorded_battle.h"
#include "main.h"
#include "pokemon.h"
#include "rng.h"
#include "random.h"
#include "event_data.h"
#include "link.h"
#include "string_util.h"

View File

@ -1,7 +1,7 @@
#include "global.h"
#include "roamer.h"
#include "pokemon.h"
#include "rng.h"
#include "random.h"
#include "species.h"
#include "event_data.h"

View File

@ -34,7 +34,7 @@
#include "party_menu.h"
#include "pokemon_3.h"
#include "pokemon_storage_system.h"
#include "rng.h"
#include "random.h"
#include "overworld.h"
#include "rtc.h"
#include "script.h"

View File

@ -4,7 +4,7 @@
#include "rtc.h"
#include "overworld.h"
#include "map_constants.h"
#include "rng.h"
#include "random.h"
#include "event_data.h"
#include "fieldmap.h"
#include "field_camera.h"

View File

@ -4,7 +4,7 @@
#include "species.h"
#include "metatile_behavior.h"
#include "fieldmap.h"
#include "rng.h"
#include "random.h"
#include "map_constants.h"
#include "field_player_avatar.h"
#include "abilities.h"

View File

@ -2,32 +2,32 @@
.include "src/malloc.o"
.include "src/dma3_manager.o"
.include "src/gpu_regs.o"
.include "src/bg.o"
.include "src/bg.o"
.include "src/text.o"
.include "src/sprite.o"
.include "src/link.o"
.include "src/rtc.o"
.include "src/main_menu.o"
.include "src/battle_1.o"
.include "src/egg_hatch.o"
.include "src/berry_blender.o"
.include "src/play_time.o"
.include "src/rom4.o"
.include "src/field_camera.o"
.include "src/script.o"
.include "src/scrcmd.o"
.include "src/tileset_anims.o"
.include "src/palette.o"
.include "src/sound.o"
.include "src/field_screen.o"
.include "src/field_effect.o"
.include "src/pokemon_storage_system.o"
.include "src/fldeff_cut.o"
.include "src/script_menu.o"
.include "src/record_mixing.o"
.include "src/tv.o"
.include "src/link.o"
.include "src/rtc.o"
.include "src/main_menu.o"
.include "src/battle_1.o"
.include "src/egg_hatch.o"
.include "src/berry_blender.o"
.include "src/play_time.o"
.include "src/overworld.o"
.include "src/field_camera.o"
.include "src/script.o"
.include "src/scrcmd.o"
.include "src/tileset_anims.o"
.include "src/palette.o"
.include "src/sound.o"
.include "src/field_screen.o"
.include "src/field_effect.o"
.include "src/pokemon_storage_system.o"
.include "src/fldeff_cut.o"
.include "src/script_menu.o"
.include "src/record_mixing.o"
.include "src/tv.o"
.space 1 @ TODO: define this u32 in mauville_old_man
.space 1 @ TODO: define this u32 in mauville_old_man
gUnknown_03001178: @ 3001178
.space 0x4
@ -54,9 +54,9 @@ gUnknown_030011F6: @ 30011F6
gUnknown_030011F7: @ 30011F7
.space 0x1
.include "src/starter_choose.o"
.include "src/starter_choose.o"
.align 0x2
.align 0x2
gUnknown_030011FC: @ 30011FC
.space 0x2
@ -138,7 +138,7 @@ gUnknown_03001298: @ 3001298
gUnknown_030012A8: @ 30012A8
.space 0x10
.include "src/berry_fix_program.o"
.include "src/berry_fix_program.o"
gUnknown_030012BC: @ 30012BC
.space 0x4

View File

@ -543,7 +543,7 @@ gUnknown_0202499C: @ 202499C
gUnknown_020249B4: @ 20249B4
.space 0x8
.include "src/rng.o"
.include "src/random.o"
.include "src/daycare.o"
.include "src/load_save.o"