pokeemerald/data
PikalaxALT 52db3ad5aa Decompile TV (#80)
* ClearTVShowData

* special_0x44

* DoTVShow (nonmatching because align)

* DoTVShowBravoTrainerPokemonProfile

* Update field names

* DoTVShowBravoTrainerBattleTower

* Renaming of struct fields

* sub_80EBFF4 and UpdateTVScreensOnMap

* SetTVMetatilesOnMap

* Power buttons for the TV screens on the map

* special_0x45

* sub_80EC18C

* special_0x4a

* ResetGabbyAndTy

* GabbyAndTyBeforeInterview

* GabbyAndTyAfterInterview

* Through IsTVShowInSearchOfTrainersAiring

* GabbyAndTyGetLastQuote

* GabbyAndTyGetLastBattleTrivia

* GabbyAndTySetScriptVarsToFieldObjectLocalIds

* InterviewAfter; use TVShow as a precursor for making the individual show structs anonymous

* Make TV structs anonymous within the union

* Move the TV union to its own subheader

* Move TV show enums to the global.tv.h subheader

* Funcion renaming

* Apply static attributes where able

* PutPokemonTodayCaughtOnAir

* sub_80EC8A4

* PutPokemonTodayFailedOnTheAir

* sub_80EC9E8, sub_80ECA10

* sub_80ECA38

* sub_80ECB00

* Put3CheersForPokeblocksOnTheAir

* PutFanClubSpecialOnTheAir

* ContestLiveUpdates_BeforeInterview

* Other before-interview Contest Live Updates functions

* ContestLiveUpdates_BeforeInterview_5

* InterviewAfter_BravoTrainerPokemonProfile

* BravoTrainerPokemonProfile_BeforeInterview1

* BravoTrainerPokemonProfile_BeforeInterview2

* Disassemble TV data

* Decompile TV data

* InterviewAfter_BravoTrainerBattleTowerProfile

* SaveRecordedItemPurchasesForTVShow

* PutNameRaterShowOnTheAir

* StartMassOutbreak

* PutLilycoveContestLadyShowOnTheAir

* InterviewAfter_FanClubLetter

* Rip TV strings

* InterviewAfter_RecentHappenings

* InterviewAfter_PkmnFanClubOpinions

* sub_80ED718

* EndMassOutbreak

* sub_80ED888

* sub_80ED8B4

* UpdateMassOutbreakTimeLeft

* sub_80ED950

* PutFishingAdviceShowOnTheAir

* through sub_80EDA80

* ewram and common syms are now fetched from the object files

* BSS symbols are taken from the tv.o file

* through sub_80EDC60

* sub_80EDCE8

* sub_80EDD78

* through sub_80EDE84

* nomatching sub_80EDE98

* sub_80EDFB4

* sub_80EE104

* sub_80EE104

* sub_80EE184

* sub_80EE2CC

* sub_80EE35C

* sub_80EE44C

* sub_80EE4DC

* sub_80EE5A4

* sub_80EE69C

* sub_80EE72C

* sub_80EE7C0

* sub_80EE818

* sub_80EE8C8

* sub_80EEA70

* sub_80EEB98

* sub_80EEBF4

* through sub_80EED60

* Functions relating to Pokemon News

* sub_80EEF6C

* GetPriceReduction

* IsPriceDiscounted

* sub_80EF120

* through sub_80EF370

* sub_80EF40C

* HasMixableShowAlreadyBeenSpawnedWithPlayerID

* TV_SortPurchasesByQuantity

* FindActiveBroadcastByShowType_SetScriptResult

* InterviewBefore

* through sub_80EF88C

* through sub_80EF93C

* through sub_80EFA24

* through TV_BernoulliTrial

* sub_80EFB58

* sub_80EFBA4

* sub_80EFBDC

* through sub_80EFD98

* ChangePokemonNickname

* ChangeBoxPokemonNickname

* sub_80EFF9C

* through player_id_to_dword

* CheckForBigMovieOrEmergencyNewsOnTV

* GetMomOrDadStringForTVMessage

* sub_80F01E8

* sub_80F0358

* sub_80F049C

* TV record mixing functions

* sub_80F06D0

* sub_80F0708 nonmatching

* through sub_80F0B24

* sub_80F0B64

* through sub_80F0C04

* sub_80F0C7C

* sub_80F0D60

* sub_80F0E58

* sub_80F0E84

* through sub_80F0F24

* sub_80F0F64

* sub_80F1208

* sub_80F1254

* sub_80F1290

* sub_80F12A4

* sub_80F14F8

* DoTVShowTodaysSmartShopper

* DoTVShowTheNameRaterShow

* DoTVShowPokemonTodaySuccessfulCapture

* DoTVShowPokemonTodayFailedCapture

* DoTVShowPokemonFanClubLetter

* DoTVShowRecentHappenings

* DoTVShowPokemonFanClubOpinions

* DoTVShowPokemonNewsMassOutbreak

* DoTVShowPokemonContestLiveUpdates

* DoTVShowPokemonBattleUpdate

* DoTVShow3CheersForPokeblocks

* DoTVShowInSearchOfTrainers

* Label GabbyAndTyData fields; remove ddump comments from data/text/tv.inc

* DoTVShowPokemonAngler

* DoTVShowTheWorldOfMasters; update RAM symbols and field names

* Decorate static functions

* DoTVShowTodaysRivalTrainer; region map enums

* TVDewfordTrendWatcherNetworkTextGroup

* DoTVShowHoennTreasureInvestigators

* DoTVShowFindThatGamer

* DoTVShowBreakingNewsTV

* DoTVShowSecretBaseVisit

* DoTVShowPokemonLotterWinnerFlashReport

* DoTVShowThePokemonBattleSeminar

* DoTVShowTrainerFanClubSpecial, DoTVShowTrainerFanClub

* DoTVShowSpotTheCuties

* DoTVShowPokemonNewsBattleFrontier

* DoTVShowWhatsNo1InHoennToday

* Helpers for DoTVShowSecretBaseSecrets

* DoTVShowSecretBaseSecrets

* DoTVShowSafariFanClub

* Finish decompilation of tv.s

* Some renaming

* Rename text group pointers

* revoke statis; pokenews enums

* Labels are number one

* Label all TV struct fields

* Make data/text/tv.inc more readable

* Split data/text/tv.inc

* Rename pokenews text pointers

* Frontier Symbol constants; indicate static rodata objects with 's' prefix

* Fix leading spaces/tabs

F*** CLion sometimes

* Fix inconsequential warning
2017-10-13 10:09:36 -05:00
..
battle_frontier .s -> .inc 2016-11-01 08:29:13 -07:00
experience_tables .s -> .inc 2016-11-01 08:29:13 -07:00
graphics Add front pic anims with help from marijnvdwerf 2017-10-09 13:10:02 -05:00
text Decompile TV (#80) 2017-10-13 10:09:36 -05:00
tilesets Rip tileset anims 2017-10-02 20:53:58 -04:00
anim_mon_front_pics.s clean up aligns 2016-09-03 14:31:43 -07:00
bard_music.s Extract baserom calls from files 2017-09-17 20:33:32 -05:00
base_stats.inc .s -> .inc 2016-11-01 08:29:13 -07:00
battle_1.s Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
battle_7.s Extract baseroms from battle_interface 2017-09-30 16:37:53 -05:00
battle_ai_scripts.s Rename battle AI prefix to something agreeable 2017-09-26 00:19:20 -05:00
battle_anim_80FE840.s Extract baseroms from battle_anim_80FE840 2017-09-29 17:34:39 -05:00
battle_anim_815A0D4.s split, rename for real this time 2017-09-30 09:11:48 +02:00
battle_anim_8170478.s Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
battle_anim_scripts.s .s -> .inc 2016-11-01 08:29:13 -07:00
battle_anims.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
battle_controller_link_opponent.s Continue baserom extraction 2017-09-19 14:12:51 -05:00
battle_controller_link_partner.s Continue baserom extraction 2017-09-19 14:12:51 -05:00
battle_controller_opponent.s Continue baserom extraction 2017-09-19 14:12:51 -05:00
battle_controller_player_partner.s Continue baserom extraction 2017-09-19 14:12:51 -05:00
battle_controller_player.s Extract baserom calls from data2b_2.s and rename 2017-09-26 21:48:26 -05:00
battle_controller_recorded_opponent.s Continue baserom extraction 2017-09-19 14:12:51 -05:00
battle_controller_recorded_player.s Continue baserom extraction 2017-09-19 14:12:51 -05:00
battle_controller_safari.s Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
battle_controller_wally.s Continue baserom extraction 2017-09-19 14:12:51 -05:00
battle_frontier_1.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
battle_frontier_2.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
battle_interface.s Extract baseroms from battle_interface 2017-09-30 16:37:53 -05:00
battle_moves.inc .s -> .inc 2016-11-01 08:29:13 -07:00
battle_scripts_1.s battle 2 is done 2017-10-06 17:06:45 +02:00
battle_scripts_2.s battle 2 is done 2017-10-06 17:06:45 +02:00
battle_setup.s Extract baseroms from battle_setup.s 2017-09-29 17:53:48 -05:00
battle_tent.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
battle_tower.s split the second file 2017-09-30 09:22:59 +02:00
berries.inc .s -> .inc 2016-11-01 08:29:13 -07:00
berry_blender.s split data3_a0_A 2017-09-25 15:27:54 -04:00
berry_fix.mb Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
berry_tag_screen.s Add window_template_terminator macro 2017-09-25 20:24:14 -05:00
bike.s Extract baseroms from and combine fldeff_emotion and trainer_see 2017-10-01 14:48:29 -05:00
braille_puzzles.s Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
cable_car.s Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
cable_club.s Extract baseroms from and combine fldeff_emotion and trainer_see 2017-10-01 14:48:29 -05:00
clear_save_data_screen.s Add window_template_terminator macro 2017-09-25 20:24:14 -05:00
contest_ai_scripts.s .s -> .inc 2016-11-01 08:29:13 -07:00
contest_ai.s Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
contest_effect_function_table.inc .s -> .inc 2016-11-01 08:29:13 -07:00
contest_effect.s split data3_a1 2017-09-25 15:03:52 -04:00
contest_effects.inc .s -> .inc 2016-11-01 08:29:13 -07:00
contest_link_80F57C4.s split data3_a1 2017-09-25 15:03:52 -04:00
contest_moves.inc .s -> .inc 2016-11-01 08:29:13 -07:00
contest_painting.s Split data3b.s 2017-09-25 11:23:44 -04:00
contest.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
coord_event_weather.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
credits.s Add window_template_terminator macro 2017-09-25 20:24:14 -05:00
cry_id_table.inc .s -> .inc 2016-11-01 08:29:13 -07:00
cute_sketch.s Split data3b.s 2017-09-25 11:23:44 -04:00
data2b.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
data2c.s Extract baseroms from data2c 2017-10-06 01:57:52 -05:00
data4.s update labels 2017-10-06 19:48:18 -04:00
data_860A4AC.s split data battle controller files 2017-09-04 15:39:20 +02:00
daycare.s Rename data/data3.s to data/daycare.s 2017-09-25 16:13:32 -04:00
decoration.s Split data3b.s 2017-09-25 11:23:44 -04:00
easy_chat.s Split data3b.s 2017-09-25 11:23:44 -04:00
egg_moves.inc .s -> .inc 2016-11-01 08:29:13 -07:00
enemy_mon_elevation.inc Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
event_script_command_function_table.inc decompile script.s 2017-09-10 23:05:23 +02:00
event_scripts.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
evolution_graphics.s Extract baseroms from intro_credits_graphics.s 2017-10-01 03:08:19 -05:00
evolution_table.inc .s -> .inc 2016-11-01 08:29:13 -07:00
experience_tables.inc .s -> .inc 2016-11-01 08:29:13 -07:00
fanfares.s Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
field_door.s split data3_a0_A 2017-09-25 15:27:54 -04:00
field_effect_helpers.s split more data 2017-01-15 22:56:19 -08:00
field_effect_misc.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
field_effect_scripts.s decompile braille_puzzles.c 2017-10-05 13:02:39 -04:00
field_effect.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
field_ground_effect.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
field_map_obj.s add things git ate 2017-09-23 00:13:11 +02:00
field_player_avatar.s split data3_a0_A 2017-09-25 15:27:54 -04:00
field_region_map.s Extract baserom includes from battle_7 and field_region_map 2017-09-26 23:21:27 -05:00
field_screen.s Extract baseroms from title_screen 2017-09-27 00:51:09 -05:00
field_special_scene.s merge 2017-09-27 00:48:11 -04:00
field_tasks.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
fieldmap.s split data3_a0_A 2017-09-25 15:27:54 -04:00
fldeff_cut.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
fonts.s Continue extracting from data2.s 2017-09-13 01:10:12 -05:00
fossil_special_fldeff_groundshake.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
graphics.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
hall_of_fame.s split more data 2017-01-15 22:56:19 -08:00
heal_location.s Split data3b.s 2017-09-25 11:23:44 -04:00
intro_credits_graphics.s Extract baseroms from intro_credits_graphics.s 2017-10-01 03:08:19 -05:00
intro.s Extract baseroms from intro_credits_graphics.s 2017-10-01 03:08:19 -05:00
io_reg.s Begin extracting baserom calls from data2.s 2017-09-11 00:40:47 -05:00
item_effect_info.inc split item effects and organize sym ewram 2017-09-06 21:11:10 +02:00
item_icon.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
item_menu_icons.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
item_menu.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
item_use.s Extract baseroms from item_use 2017-09-29 17:41:45 -05:00
items.inc .s -> .inc 2016-11-01 08:29:13 -07:00
learn_move.s split, rename for real this time 2017-09-30 09:11:48 +02:00
level_up_learnset_pointers.inc start porting pokemon1 2017-09-06 17:19:08 +02:00
level_up_learnsets.inc .s -> .inc 2016-11-01 08:29:13 -07:00
librfu_rodata.s base_emerald to baserom 2016-09-03 15:07:51 -07:00
librtc_rodata.s split data out of data2.s 2016-09-03 09:25:58 -07:00
link_strings.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
link.s Add window_template_terminator macro 2017-09-25 20:24:14 -05:00
mail.s Split data3b.s 2017-09-25 11:23:44 -04:00
main_menu.s Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
map_name_popup.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
map_obj_8097404.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
mauville_old_man.s Split data3b.s 2017-09-25 11:23:44 -04:00
menu_helpers.s Split data3b.s 2017-09-25 11:23:44 -04:00
menu_indicators.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
mon_markings.s Split data3b.s 2017-09-25 11:23:44 -04:00
multiboot_berry_glitch_fix.s Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
multiboot_pokemon_colosseum.s Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
mystery_event_menu.s split out more data 2017-01-14 01:54:02 -08:00
mystery_event_msg.s split more data 2017-01-15 22:56:19 -08:00
naming_screen.s decompile money 2017-09-29 00:11:42 +02:00
nature_stat_table.inc .s -> .inc 2016-11-01 08:29:13 -07:00
new_menu_helpers.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
option_menu.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
party_menu.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
player_pc.s Extract baseroms from player_pc 2017-09-27 01:40:04 -05:00
pokeball.s split data3_a0_A 2017-09-25 15:27:54 -04:00
pokeblock_feed.s split more data 2017-01-15 22:56:19 -08:00
pokedex_entries.inc .s -> .inc 2016-11-01 08:29:13 -07:00
pokedex_order.inc .s -> .inc 2016-11-01 08:29:13 -07:00
pokedex.s Rename files for consistency with pokeruby 2017-10-04 02:43:45 -05:00
pokemon_colosseum.mb Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
pokemon_icon.s Extract baseroms from data2c 2017-10-06 01:57:52 -05:00
pokemon_storage_system.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
pokemon_summary_screen.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
pokenav.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
rayquaza_scene.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
record_mixing.s split data3_a1 2017-09-25 15:03:52 -04:00
region_map_entries.inc .s -> .inc 2016-11-01 08:29:13 -07:00
region_map.s Split data3b.s 2017-09-25 11:23:44 -04:00
reset_rtc_screen.s Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
rom4.s split data3_a0_A 2017-09-25 15:27:54 -04:00
rom_8486FEC.s decompile metatile behav 2017-09-29 19:03:50 +02:00
rotating_gate.s Split data3b.s 2017-09-25 11:23:44 -04:00
save.s begin save.s decomp, thanks revo! 2017-09-03 14:13:01 +02:00
scrcmd.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
script_funcs.s split data1.s 2016-09-03 10:20:06 -07:00
script_menu.s Capitalize all gUnknown labels 2017-09-26 08:30:12 -04:00
script_pokemon_util_80F87D8.s split data3_a1 2017-09-25 15:03:52 -04:00
secret_base.s split data3_a1 2017-09-25 15:03:52 -04:00
shop.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
slot_machine.s Split data3b.s 2017-09-25 11:23:44 -04:00
smokescreen.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-09-26 22:21:38 -05:00
sound_data.s decompile sound.s 2017-09-02 17:03:46 +02:00
spinda_spot_graphics.inc .s -> .inc 2016-11-01 08:29:13 -07:00
start_menu.s Decompile asm/tileset.s into src/palette.c 2017-09-30 21:19:29 -04:00
strings.s Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
text_window.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
title_screen.s Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
tm_hm_learnsets.inc .s -> .inc 2016-11-01 08:29:13 -07:00
trade.s split data3_a0_A 2017-09-25 15:27:54 -04:00
trainer_card.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
trainer_class_name_indices.inc almost there, troubles 2017-09-12 00:01:12 +02:00
trainer_money.inc Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
trainer_parties.inc .s -> .inc 2016-11-01 08:29:13 -07:00
trainer_pic_indices.inc pokemon 3 is almost decompiled 2017-09-12 15:05:40 +02:00
trainer_rematch.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
trainer_see.s Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
trainers.inc .s -> .inc 2016-11-01 08:29:13 -07:00
type_effectiveness.inc Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
unk_81BAD84.s Split data/data_emerald.s 2017-09-21 13:28:02 -04:00
unk_sprite_file.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
unk_transition.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
unknown_serial_data.s base_emerald to baserom 2016-09-03 15:07:51 -07:00
use_pokeblock.s split the second file 2017-09-30 09:22:59 +02:00
walda_phrase.s Split data/data_emerald2.s 2017-09-21 13:51:32 -04:00
wild_encounter.s Split data3_a0_B 2017-09-25 16:09:44 -04:00
wild_mons.inc .s -> .inc 2016-11-01 08:29:13 -07:00