From 3576a4d17d06c44899f42c4fe181816f97f71139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20K=C5=82ysz?= Date: Mon, 16 Nov 2026 19:28:42 +0000 Subject: [PATCH 1/2] fix(carry): name the release's empty level hooks by their callers The boot's empty 8-byte functions (the level hooks each level fills) are alike, so the alignment paired them by order. The order does not hold: USA v2.00 has its hooks 8 bytes on and one more, PAL its own run, so many release hooks had another hook's name (func_0026F748, the hero's state change hook, among them). carry.py now pairs each hook by the calls to it: a v1.01 function with a place in the release (or one function of the same shape) calls the release's hook at the same word. A hook no call names takes its place in the run between two that are named, where both moved alike. The USA v2.00 and PAL catalogues and sources use those names; the hook only USA v2.00 has is func_US2_0026F7E0 (stub_empty_us2), and PAL's empty overlay callback is v1.01's func_0032A130 (moby_do_nothing). Every program of both releases builds to the retail bytes; only hook names and their placed values change. --- config/names.tsv | 24 +--------- config/names_local.tsv | 24 +--------- config/pal/boot/functions.tsv | 73 +++++++++++++++--------------- config/us2/boot/functions.tsv | 67 +++++++++++++-------------- include/names/pal.h | 13 ------ include/names/us2.h | 11 +---- src/pal/game/0026EC50.c | 8 ---- src/pal/game/0026F598.c | 7 --- src/pal/game/0026F5B8.c | 8 ---- src/pal/game/0026F608.c | 11 ----- src/pal/game/0026F670-flags.c | 6 --- src/pal/game/0026F670.c | 10 ----- src/pal/game/00272208-qcopy.c | 4 +- src/pal/game/00287018-g8.c | 10 ++--- src/pal/game/00289AA8-flags.c | 6 --- src/pal/game/00289AA8-sw.c | 12 ++--- src/pal/game/002B57C8-g8.c | 4 +- src/pal/game/002CBD80-g8.c | 16 +++---- src/pal/game/002CE0B0.c | 26 +++++------ src/pal/game/002D5FF0.c | 8 ++-- src/pal/game/002E7B78-cc-g8.c | 8 ++-- src/pal/game/002E8030-qcopy.c | 20 ++++----- src/pal/game/002EA0B0-flags.c | 12 ++--- src/pal/game/002EBA30-flags.c | 4 +- src/pal/game/002F6208-g8.c | 20 ++++----- src/pal/game/002F90E8-open-g8.c | 8 ++-- src/pal/game/002F96D8-g16.c | 12 ++--- src/pal/game/002F9898-sw.c | 2 +- src/pal/game/002FEC30-g8.c | 4 +- src/pal/game/00300104-flags.c | 5 --- src/pal/game/003096D0-sw.c | 2 +- src/pal/game/0030A9D8-g8.c | 20 ++++----- src/pal/game/0030D834-sw.c | 14 +++--- src/pal/game/0030F2B0-sw.c | 4 +- src/pal/game/00310BE8-sw.c | 6 +-- src/pal/game/00310BE8-sw2.c | 34 +++++++------- src/pal/game/003164C0-sw.c | 27 ++++++----- src/pal/game/00317310-port.c | 8 ++-- src/pal/game/00320D00-pickup-g8.c | 4 +- src/pal/game/0032AF58-sw-g8.c | 4 +- src/pal/game/0032B650.c | 9 +--- src/pal/game/0033067C-sw-g8.c | 6 +-- src/pal/game/0033423C-sw.c | 6 +-- src/pal/game/00335118-g8.c | 4 +- src/pal/game/0033A598-flags.c | 6 --- src/pal/game/0033A9B0-flags.c | 6 --- src/pal/game/00343638-flags.c | 6 --- src/pal/game/00350E98.c | 4 +- src/us2/game/0026EDE8.c | 11 ----- src/us2/game/0026F730.c | 8 ---- src/us2/game/0026F750.c | 9 ---- src/us2/game/0026F7A0.c | 12 ----- src/us2/game/0026F7E0.c | 8 ++++ src/us2/game/0026F808-flags.c | 6 --- src/us2/game/0026F808.c | 17 ------- src/us2/game/00272378-qcopy.c | 4 +- src/us2/game/00287140-g8.c | 10 ++--- src/us2/game/0029C648-g82.c | 4 +- src/us2/game/002CBED0-g8.c | 16 +++---- src/us2/game/002CE0C8.c | 28 ++++++------ src/us2/game/002D65D8.c | 6 +-- src/us2/game/002E7BE0-g8.c | 8 ++-- src/us2/game/002E7BE0-qcopy.c | 20 ++++----- src/us2/game/002EA0C0-flags.c | 8 ++-- src/us2/game/002EC038-flags.c | 4 +- src/us2/game/002F6220-g8.c | 20 ++++----- src/us2/game/002F8FF8-open-g8.c | 4 +- src/us2/game/002F95E8-g16.c | 12 ++--- src/us2/game/002F97A8-sw.c | 2 +- src/us2/game/002F97A8-sw2.c | 2 +- src/us2/game/002FEDD0-g8.c | 4 +- src/us2/game/0030A098-sw.c | 6 +-- src/us2/game/0030A098-sw2.c | 20 ++++----- src/us2/game/0030D238-sw.c | 14 +++--- src/us2/game/0030FAC0-sw.c | 2 +- src/us2/game/0030FAC0-sw2.c | 2 +- src/us2/game/003105A8-sw.c | 34 +++++++------- src/us2/game/00315DD0-sw.c | 27 ++++++----- src/us2/game/00316C20-cc-g8.c | 8 ++-- src/us2/game/00320A20-pickup-g8.c | 4 +- src/us2/game/0032AD60.c | 4 +- src/us2/game/0032F944-sw-g8.c | 6 +-- src/us2/game/003342A8-g8.c | 4 +- src/us2/game/003342A8-sw.c | 10 ++--- src/us2/game/003396E8-flags.c | 6 --- src/us2/game/00339B00-flags.c | 6 --- src/us2/game/0034F9F8.c | 4 +- tests/test_carry.py | 21 +++++++++ tools/carry.py | 75 +++++++++++++++++++++++++++++++ 89 files changed, 484 insertions(+), 605 deletions(-) delete mode 100644 src/pal/game/0026EC50.c delete mode 100644 src/pal/game/0026F598.c delete mode 100644 src/pal/game/0026F5B8.c delete mode 100644 src/pal/game/0026F608.c delete mode 100644 src/pal/game/0026F670-flags.c delete mode 100644 src/pal/game/0026F670.c delete mode 100644 src/pal/game/00289AA8-flags.c delete mode 100644 src/pal/game/00300104-flags.c delete mode 100644 src/pal/game/0033A598-flags.c delete mode 100644 src/pal/game/0033A9B0-flags.c delete mode 100644 src/pal/game/00343638-flags.c delete mode 100644 src/us2/game/0026EDE8.c delete mode 100644 src/us2/game/0026F730.c delete mode 100644 src/us2/game/0026F750.c delete mode 100644 src/us2/game/0026F7A0.c create mode 100644 src/us2/game/0026F7E0.c delete mode 100644 src/us2/game/0026F808-flags.c delete mode 100644 src/us2/game/0026F808.c delete mode 100644 src/us2/game/003396E8-flags.c delete mode 100644 src/us2/game/00339B00-flags.c diff --git a/config/names.tsv b/config/names.tsv index dd954e678..3f3e863d7 100644 --- a/config/names.tsv +++ b/config/names.tsv @@ -24760,16 +24760,6 @@ func_PAL_L06_0045C220 spinning_trigger_burst_update_pal descriptive config/names func_PAL_L17_0041FC60 spray_effect_update_pal descriptive config/names_local.tsv func_PAL_L03_003CB2E8 spring_holder_update_pal descriptive config/names_local.tsv func_PAL_L12_003E5DD8 squirrel_alert_for_object_pal descriptive config/names_local.tsv -func_PAL_0026F608 stub_empty_19_pal descriptive config/names_local.tsv -func_US2_0026F7A0 stub_empty_19_us2 descriptive config/names_local.tsv -func_PAL_0026F620 stub_empty_21_pal descriptive config/names_local.tsv -func_US2_0026F7B8 stub_empty_21_us2 descriptive config/names_local.tsv -func_PAL_0026F580 stub_empty_2_pal descriptive config/names_local.tsv -func_US2_0026F718 stub_empty_2_us2 descriptive config/names_local.tsv -func_PAL_0026F598 stub_empty_5_pal descriptive config/names_local.tsv -func_US2_0026F730 stub_empty_5_us2 descriptive config/names_local.tsv -func_PAL_0026F5B8 stub_empty_9_pal descriptive config/names_local.tsv -func_US2_0026F750 stub_empty_9_us2 descriptive config/names_local.tsv func_PAL_L05_0041EF70 stub_l05_empty_pal descriptive config/names_local.tsv func_PAL_L00_00449870 sub_object_get_value_first_pal descriptive config/names_local.tsv func_US2_L00_00445228 sub_object_get_value_first_us2 descriptive config/names_local.tsv @@ -25129,7 +25119,6 @@ func_PAL_L06_004248E8 actor_move_toward_goal_pal descriptive config/names_local. func_PAL_L02_00405040 actor_pick_idle_message_pal descriptive config/names_local.tsv func_PAL_L06_004235E8 actor_steer_toward_goal_pal descriptive config/names_local.tsv func_PAL_L06_004240F0 actor_tick_timers_spawn_dust_pal descriptive config/names_local.tsv -func_US2_0026F810 actuator_calc_power_us2 descriptive config/names_local.tsv func_PAL_L02_003C7F88 advance_path_follower_pal descriptive config/names_local.tsv func_PAL_L17_00394220 aging_projectile_update_pal descriptive config/names_local.tsv func_PAL_L00_0040E9F0 aimed_projectile_spawn_pal descriptive config/names_local.tsv @@ -26416,7 +26405,6 @@ func_PAL_0030FB38 moby_apply_hit_damage_game_pal descriptive config/names_local. func_PAL_L16_004164B8 moby_bob_along_sine_wave_pal descriptive config/names_local.tsv func_PAL_L04_003FFB98 moby_damage_in_firing_cone_pal descriptive config/names_local.tsv func_PAL_L04_003FDE38 moby_destroy_effects_with_burst_pal descriptive config/names_local.tsv -func_PAL_0032B920 moby_do_nothing_pal descriptive config/names_local.tsv func_PAL_L09_003EDEE8 moby_ease_turn_angles_pal descriptive config/names_local.tsv func_PAL_00334CB0 moby_explode_and_hurt_nearby_pal descriptive config/names_local.tsv func_PAL_L00_00390728 moby_fade_colour_by_countdown_pal descriptive config/names_local.tsv @@ -27177,11 +27165,6 @@ func_PAL_L14_003E3E84 spread_weapon_update_pal descriptive config/names_local.ts func_PAL_L00_002AF458 start_equipped_item_animation_pal descriptive config/names_local.tsv func_PAL_L16_003ADB58 start_vendor_beam_pulse_pal descriptive config/names_local.tsv func_PAL_L01_003A9CB8 steered_moby_update_pal descriptive config/names_local.tsv -func_PAL_0026F670 stub_empty_30_pal descriptive config/names_local.tsv -func_PAL_0026F678 stub_empty_31_pal descriptive config/names_local.tsv -func_US2_0026F808 stub_empty_31_us2 descriptive config/names_local.tsv -func_US2_0026F818 stub_empty_32_us2 descriptive config/names_local.tsv -func_PAL_00300300 stub_empty_flags_pal descriptive config/names_local.tsv func_US2_L00_0043FEA0 stub_l00_return_arg_2_us2 descriptive config/names_local.tsv func_PAL_L00_0043E7B8 sub_object_cleanup_pal descriptive config/names_local.tsv func_US2_L00_0043A4B8 sub_object_cleanup_us2 descriptive config/names_local.tsv @@ -27193,7 +27176,6 @@ func_PAL_L00_004406A0 sub_object_init_chain_copy_pal descriptive config/names_lo func_US2_L00_0043C380 sub_object_init_chain_copy_us2 descriptive config/names_local.tsv func_PAL_L00_0043EBB8 sub_object_init_chain_pal descriptive config/names_local.tsv func_US2_L00_0043A8D8 sub_object_init_chain_us2 descriptive config/names_local.tsv -func_PAL_0028A468 subtitle_box_draw_nothing_pal descriptive config/names_local.tsv func_PAL_00289730 subtitle_request_voice_line_pal descriptive config/names_local.tsv func_US2_00289840 subtitle_request_voice_line_us2 descriptive config/names_local.tsv func_PAL_00289AA8 subtitle_update_state_machine_pal descriptive config/names_local.tsv @@ -27241,7 +27223,6 @@ func_PAL_L00_003F0458 synthenoid_update_pal descriptive config/names_local.tsv func_US2_0029D368 tab_menu_draw_2_call_us2 descriptive config/names_local.tsv func_US2_0029D2F8 tab_menu_draw_call_us2 descriptive config/names_local.tsv func_PAL_00343638 tab_menu_get_records_pal descriptive config/names_local.tsv -func_PAL_00343830 tab_menu_noop_pal descriptive config/names_local.tsv func_PAL_00343690 tab_menu_switch_tab_pal descriptive config/names_local.tsv func_US2_0029D398 tab_menu_update_2_call_us2 descriptive config/names_local.tsv func_US2_0029D328 tab_menu_update_call_us2 descriptive config/names_local.tsv @@ -27429,10 +27410,6 @@ func_US2_0029D4B8 two_toggle_b_panel_draw_us2 descriptive config/names_local.tsv func_US2_0029D4E8 two_toggle_b_panel_update_us2 descriptive config/names_local.tsv func_PAL_0033F738 two_toggle_b_update_pal descriptive config/names_local.tsv func_US2_0033E8B0 two_toggle_b_update_us2 descriptive config/names_local.tsv -func_PAL_0033A930 ui_nop_c_pal descriptive config/names_local.tsv -func_US2_00339A80 ui_nop_c_us2 descriptive config/names_local.tsv -func_PAL_0033AE40 ui_nop_d_pal descriptive config/names_local.tsv -func_US2_00339F90 ui_nop_d_us2 descriptive config/names_local.tsv func_PAL_L01_00397578 update_camera_pose_trigger_pal descriptive config/names_local.tsv func_PAL_L03_003C70B8 update_commanded_moby_pal descriptive config/names_local.tsv func_PAL_002E7270 update_equipment_pieces_pal descriptive config/names_local.tsv @@ -27521,3 +27498,4 @@ func_PAL_L19_0042451C yeti_group_spawner_update_pal descriptive config/names_loc func_PAL_L19_00421568 yeti_init_stats_pal descriptive config/names_local.tsv func_PAL_L19_004205C8 yeti_update_pal descriptive config/names_local.tsv func_PAL_L12_00425A08 zone_color_pulse_update_pal descriptive config/names_local.tsv +func_US2_0026F7E0 stub_empty_us2 descriptive config/names_local.tsv diff --git a/config/names_local.tsv b/config/names_local.tsv index 0b6751eff..b4913880c 100644 --- a/config/names_local.tsv +++ b/config/names_local.tsv @@ -23715,16 +23715,6 @@ func_PAL_L06_0045C220 spinning_trigger_burst_update_pal PAL version of spinning_ func_PAL_L17_0041FC60 spray_effect_update_pal PAL version of spray_effect_update (func_L17_0041A4C0; carry: fingerprint) func_PAL_L03_003CB2E8 spring_holder_update_pal PAL version of spring_holder_update (func_L03_003C72A8; carry: changed) func_PAL_L12_003E5DD8 squirrel_alert_for_object_pal PAL version of squirrel_alert_for_object (func_L12_003E1B28; carry: changed) -func_PAL_0026F608 stub_empty_19_pal PAL version of stub_empty_19 (func_0026F7A0; carry: changed) -func_US2_0026F7A0 stub_empty_19_us2 US2 version of stub_empty_19 (func_0026F7A0; carry: changed) -func_PAL_0026F620 stub_empty_21_pal PAL version of stub_empty_21 (func_0026F7B8; carry: changed) -func_US2_0026F7B8 stub_empty_21_us2 US2 version of stub_empty_21 (func_0026F7B8; carry: changed) -func_PAL_0026F580 stub_empty_2_pal PAL version of stub_empty_2 (func_0026F718; carry: changed) -func_US2_0026F718 stub_empty_2_us2 US2 version of stub_empty_2 (func_0026F718; carry: changed) -func_PAL_0026F598 stub_empty_5_pal PAL version of stub_empty_5 (func_0026F730; carry: changed) -func_US2_0026F730 stub_empty_5_us2 US2 version of stub_empty_5 (func_0026F730; carry: changed) -func_PAL_0026F5B8 stub_empty_9_pal PAL version of stub_empty_9 (func_0026F750; carry: changed) -func_US2_0026F750 stub_empty_9_us2 US2 version of stub_empty_9 (func_0026F750; carry: changed) func_PAL_L05_0041EF70 stub_l05_empty_pal PAL version of stub_l05_empty (func_L05_0041A218; carry: cut,fingerprint) (medium) func_PAL_L00_00449870 sub_object_get_value_first_pal PAL version of sub_object_get_value_first (func_L00_00443DF8; carry: changed) func_US2_L00_00445228 sub_object_get_value_first_us2 US2 version of sub_object_get_value_first (func_L00_00443DF8; carry: changed) @@ -24084,7 +24074,6 @@ func_PAL_L06_004248E8 actor_move_toward_goal_pal same as func_L06_00420548 func_PAL_L02_00405040 actor_pick_idle_message_pal PAL copy of actor_pick_idle_message func_PAL_L06_004235E8 actor_steer_toward_goal_pal same as func_L06_0041F2A0 func_PAL_L06_004240F0 actor_tick_timers_spawn_dust_pal dust particles like func_L06_0041FD90 -func_US2_0026F810 actuator_calc_power_us2 US2 copy of ActuatorCalcPower returns 0 func_PAL_L02_003C7F88 advance_path_follower_pal v1.01 AdvancePathFollower same body func_PAL_L17_00394220 aging_projectile_update_pal PAL copy of aging_projectile_update func_PAL_L00_0040E9F0 aimed_projectile_spawn_pal PAL copy of SpawnAimedProjectile @@ -25371,7 +25360,6 @@ func_PAL_0030FB38 moby_apply_hit_damage_game_pal PAL copy of func_0030E700 func_PAL_L16_004164B8 moby_bob_along_sine_wave_pal file comment: copy of func_L16_00411368 func_PAL_L04_003FFB98 moby_damage_in_firing_cone_pal offset matches func_L04_003FB990 func_PAL_L04_003FDE38 moby_destroy_effects_with_burst_pal comment: copy of func_L04_003F9C60 -func_PAL_0032B920 moby_do_nothing_pal empty overlay callback (medium) func_PAL_L09_003EDEE8 moby_ease_turn_angles_pal v1.01 moby_ease_turn_angles func_PAL_00334CB0 moby_explode_and_hurt_nearby_pal PAL copy of func_00333048 func_PAL_L00_00390728 moby_fade_colour_by_countdown_pal counterpart 0038D650 @@ -26132,11 +26120,6 @@ func_PAL_L14_003E3E84 spread_weapon_update_pal PAL copy of UpdateSpreadWeapon func_PAL_L00_002AF458 start_equipped_item_animation_pal v1.01 func_L00_002AF568 counterpart func_PAL_L16_003ADB58 start_vendor_beam_pulse_pal PAL copy of start_vendor_beam_pulse func_PAL_L01_003A9CB8 steered_moby_update_pal PAL copy of UpdateSteeredMoby -func_PAL_0026F670 stub_empty_30_pal returns 0, matches stub_empty_30 -func_PAL_0026F678 stub_empty_31_pal empty, matches stub_empty_31 -func_US2_0026F808 stub_empty_31_us2 US2 copy of stub_empty_31 -func_US2_0026F818 stub_empty_32_us2 empty void stub after stub_empty_31 -func_PAL_00300300 stub_empty_flags_pal empty function (medium) func_US2_L00_0043FEA0 stub_l00_return_arg_2_us2 v2.00 copy of 0043EA78 func_PAL_L00_0043E7B8 sub_object_cleanup_pal PAL copy of func_L00_00438EB0 func_US2_L00_0043A4B8 sub_object_cleanup_us2 v2.00 copy of 00438EB0 @@ -26148,7 +26131,6 @@ func_PAL_L00_004406A0 sub_object_init_chain_copy_pal identical init chain copy ( func_US2_L00_0043C380 sub_object_init_chain_copy_us2 copy of table chain init func_PAL_L00_0043EBB8 sub_object_init_chain_pal 76-byte step init chain (medium) func_US2_L00_0043A8D8 sub_object_init_chain_us2 table chain init -func_PAL_0028A468 subtitle_box_draw_nothing_pal empty function used by subtitle box draw (medium) func_PAL_00289730 subtitle_request_voice_line_pal PAL copy of func_00288E18 func_US2_00289840 subtitle_request_voice_line_us2 copy of func_00288E18 func_PAL_00289AA8 subtitle_update_state_machine_pal PAL copy of func_00289178 @@ -26196,7 +26178,6 @@ func_PAL_L00_003F0458 synthenoid_update_pal PAL copy of synthenoid_update func_US2_0029D368 tab_menu_draw_2_call_us2 same as tab_menu_draw call func_US2_0029D2F8 tab_menu_draw_call_us2 forwards to tab_menu_draw func_PAL_00343638 tab_menu_get_records_pal table plus index times 0x14 (medium) -func_PAL_00343830 tab_menu_noop_pal empty function (medium) func_PAL_00343690 tab_menu_switch_tab_pal PAL copy of func_00341610 tab_menu_switch_tab func_US2_0029D398 tab_menu_update_2_call_us2 same as tab_menu_update call func_US2_0029D328 tab_menu_update_call_us2 forwards to tab_menu_update @@ -26384,10 +26365,6 @@ func_US2_0029D4B8 two_toggle_b_panel_draw_us2 v1.01 menu panel wrapper (medium) func_US2_0029D4E8 two_toggle_b_panel_update_us2 v1.01 menu panel wrapper (medium) func_PAL_0033F738 two_toggle_b_update_pal PAL copy of func_0033D868 two_toggle_b_update func_US2_0033E8B0 two_toggle_b_update_us2 v1.01 func_0033D868 -func_PAL_0033A930 ui_nop_c_pal empty stub, matches func_00338A58 slot (medium) -func_US2_00339A80 ui_nop_c_us2 empty, between fade and draw -func_PAL_0033AE40 ui_nop_d_pal empty stub, matches func_00338F50 slot (medium) -func_US2_00339F90 ui_nop_d_us2 empty, after draw func_PAL_L01_00397578 update_camera_pose_trigger_pal PAL copy of UpdateCameraPoseTrigger func_PAL_L03_003C70B8 update_commanded_moby_pal PAL copy of UpdateCommandedMoby func_PAL_002E7270 update_equipment_pieces_pal PAL copy of UpdateEquipmentPieces func_002E64A0 @@ -26476,3 +26453,4 @@ func_PAL_L19_0042451C yeti_group_spawner_update_pal same structure as yeti_group func_PAL_L19_00421568 yeti_init_stats_pal PAL of yeti_init_stats, called by yeti_update func_PAL_L19_004205C8 yeti_update_pal file header: PAL copy of yeti_update func_PAL_L12_00425A08 zone_color_pulse_update_pal same C as func_L12_00420660 +func_US2_0026F7E0 stub_empty_us2 an empty level hook only this release has (jr $ra; a zero result) diff --git a/config/pal/boot/functions.tsv b/config/pal/boot/functions.tsv index 1d1161bc1..3cab37e31 100644 --- a/config/pal/boot/functions.tsv +++ b/config/pal/boot/functions.tsv @@ -671,36 +671,37 @@ func_PAL_0026E928 0026E928 212 func_0026EB98 0026EA00 188 func_0026EC58 0026EAC0 400 func_PAL_0026EC50 0026EC50 2352 -func_PAL_0026F580 0026F580 8 -func_0026F720 0026F588 8 -func_0026F728 0026F590 8 -func_PAL_0026F598 0026F598 8 -func_0026F738 0026F5A0 8 -func_0026F740 0026F5A8 8 -func_0026F748 0026F5B0 8 -func_PAL_0026F5B8 0026F5B8 8 -func_0026F758 0026F5C0 8 -func_0026F760 0026F5C8 8 -func_0026F768 0026F5D0 8 -func_0026F770 0026F5D8 8 -func_0026F778 0026F5E0 8 -func_0026F780 0026F5E8 8 -func_0026F788 0026F5F0 8 -func_0026F790 0026F5F8 8 -func_0026F798 0026F600 8 -func_PAL_0026F608 0026F608 8 -func_PAL_0026F620 0026F620 8 -func_0026F7C0 0026F628 8 -func_0026F7C8 0026F630 8 -func_0026F7D0 0026F638 8 -func_0026F7D8 0026F640 8 -func_0026F7E0 0026F648 8 -func_0026F7E8 0026F650 8 -func_0026F7F0 0026F658 8 -func_0026F7F8 0026F660 8 -func_0026F800 0026F668 8 -func_PAL_0026F670 0026F670 8 -func_PAL_0026F678 0026F678 8 +func_0026F710 0026F580 8 +func_0026F718 0026F588 8 +func_0026F720 0026F590 8 +func_0026F728 0026F598 8 +func_0026F730 0026F5A0 8 +func_0026F738 0026F5A8 8 +func_0026F740 0026F5B0 8 +func_0026F748 0026F5B8 8 +func_0026F750 0026F5C0 8 +func_0026F758 0026F5C8 8 +func_0026F760 0026F5D0 8 +func_0026F768 0026F5D8 8 +func_0026F770 0026F5E0 8 +func_0026F778 0026F5E8 8 +func_0026F780 0026F5F0 8 +func_0026F788 0026F5F8 8 +func_0026F790 0026F600 8 +func_0026F798 0026F608 8 +func_0026F7A0 0026F610 16 +func_0026F7B0 0026F620 8 +func_0026F7B8 0026F628 8 +func_0026F7C0 0026F630 8 +func_0026F7C8 0026F638 8 +func_0026F7D0 0026F640 8 +func_0026F7D8 0026F648 8 +func_0026F7E0 0026F650 8 +func_0026F7E8 0026F658 8 +func_0026F7F0 0026F660 8 +func_0026F7F8 0026F668 8 +func_0026F800 0026F670 8 +func_0026F808 0026F678 8 func_0026F810 0026F6B0 1068 func_0026FC78 0026FAE8 464 func_PAL_0026FCB8 0026FCB8 108 @@ -1051,7 +1052,7 @@ func_00288F48 00289878 108 func_00288FB8 002898E8 92 func_00289020 00289950 344 func_PAL_00289AA8 00289AA8 2496 -func_PAL_0028A468 0028A468 8 +func_00289AA0 0028A468 8 func_PAL_0028A470 0028A470 1308 func_00289FC8 0028A990 100 func_0028A030 0028A9F8 256 @@ -2292,7 +2293,7 @@ func_002FED90 002FFDE8 192 func_002FEE50 002FFEA8 32 func_002FEE70 002FFEC8 572 func_PAL_00300130 00300130 460 -func_PAL_00300300 00300300 8 +func_002FF288 00300300 8 func_002FF290 00300308 112 func_002FF300 00300378 244 func_002FF3F8 00300470 88 @@ -2555,7 +2556,7 @@ func_PAL_0032B4A8 0032B4A8 260 func_00329DC0 0032B5B0 156 func_PAL_0032B650 0032B650 224 func_PAL_0032B730 0032B730 496 -func_PAL_0032B920 0032B928 8 +func_0032A130 0032B928 8 func_PAL_0032B930 0032BB30 1592 func_0032A978 0032C168 184 func_PAL_0032C220 0032C220 400 @@ -2714,10 +2715,10 @@ func_PAL_0033A528 0033A528 100 func_00338808 0033A590 8 func_PAL_0033A598 0033A598 84 func_PAL_0033A5F0 0033A5F0 832 -func_PAL_0033A930 0033A930 8 +func_00338A58 0033A930 8 func_00338A60 0033A938 120 func_PAL_0033A9B0 0033A9B0 1168 -func_PAL_0033AE40 0033AE40 8 +func_00338F50 0033AE40 8 func_00338F58 0033AE48 176 func_PAL_0033AEF8 0033AEF8 100 func_PAL_0033AF68 0033AF68 688 @@ -2834,7 +2835,7 @@ func_PAL_003435D8 003435D8 92 func_PAL_00343638 00343638 88 func_PAL_00343690 00343690 312 func_PAL_003437C8 003437C8 104 -func_PAL_00343830 00343830 8 +func_003417C8 00343830 8 func_PAL_00343838 00343838 236 func_PAL_00343928 00343928 392 func_00341A48 00343AB0 28 diff --git a/config/us2/boot/functions.tsv b/config/us2/boot/functions.tsv index 408e8981c..f056279dd 100644 --- a/config/us2/boot/functions.tsv +++ b/config/us2/boot/functions.tsv @@ -669,37 +669,38 @@ func_0026EAC8 0026EAC8 204 func_0026EB98 0026EB98 188 func_0026EC58 0026EC58 400 func_US2_0026EDE8 0026EDE8 2348 -func_US2_0026F718 0026F718 8 -func_0026F720 0026F720 8 -func_0026F728 0026F728 8 -func_US2_0026F730 0026F730 8 -func_0026F738 0026F738 8 -func_0026F740 0026F740 8 -func_0026F748 0026F748 8 -func_US2_0026F750 0026F750 8 -func_0026F758 0026F758 8 -func_0026F760 0026F760 8 -func_0026F768 0026F768 8 -func_0026F770 0026F770 8 -func_0026F778 0026F778 8 -func_0026F780 0026F780 8 -func_0026F788 0026F788 8 -func_0026F790 0026F790 8 -func_0026F798 0026F798 8 -func_US2_0026F7A0 0026F7A0 8 -func_US2_0026F7B8 0026F7B8 8 -func_0026F7C0 0026F7C0 8 -func_0026F7C8 0026F7C8 8 -func_0026F7D0 0026F7D0 8 -func_0026F7D8 0026F7D8 8 -func_0026F7E0 0026F7E0 8 -func_0026F7E8 0026F7E8 8 -func_0026F7F0 0026F7F0 8 -func_0026F7F8 0026F7F8 8 -func_0026F800 0026F800 8 -func_US2_0026F808 0026F808 8 -func_US2_0026F810 0026F810 8 -func_US2_0026F818 0026F818 8 +func_0026F710 0026F718 8 +func_0026F718 0026F720 8 +func_0026F720 0026F728 8 +func_0026F728 0026F730 8 +func_0026F730 0026F738 8 +func_0026F738 0026F740 8 +func_0026F740 0026F748 8 +func_0026F748 0026F750 8 +func_0026F750 0026F758 8 +func_0026F758 0026F760 8 +func_0026F760 0026F768 8 +func_0026F768 0026F770 8 +func_0026F770 0026F778 8 +func_0026F778 0026F780 8 +func_0026F780 0026F788 8 +func_0026F788 0026F790 8 +func_0026F790 0026F798 8 +func_0026F798 0026F7A0 8 +func_0026F7A0 0026F7A8 16 +func_0026F7B0 0026F7B8 8 +func_0026F7B8 0026F7C0 8 +func_0026F7C0 0026F7C8 8 +func_0026F7C8 0026F7D0 8 +func_0026F7D0 0026F7D8 8 +func_US2_0026F7E0 0026F7E0 8 +func_0026F7D8 0026F7E8 8 +func_0026F7E0 0026F7F0 8 +func_0026F7E8 0026F7F8 8 +func_0026F7F0 0026F800 8 +func_0026F7F8 0026F808 8 +func_0026F800 0026F810 8 +func_0026F808 0026F818 8 func_0026F810 0026F850 1068 func_0026FC78 0026FC88 464 func_0026FE48 0026FE58 108 @@ -2716,10 +2717,10 @@ func_US2_00339678 00339678 100 func_00338808 003396E0 8 func_US2_003396E8 003396E8 84 func_US2_00339740 00339740 832 -func_US2_00339A80 00339A80 8 +func_00338A58 00339A80 8 func_00338A60 00339A88 120 func_US2_00339B00 00339B00 1168 -func_US2_00339F90 00339F90 8 +func_00338F50 00339F90 8 func_00338F58 00339F98 176 func_US2_0033A048 0033A048 100 func_US2_0033A0B8 0033A0B8 688 diff --git a/include/names/pal.h b/include/names/pal.h index b5b4f86ad..920734836 100644 --- a/include/names/pal.h +++ b/include/names/pal.h @@ -147,13 +147,6 @@ #define ShowSplashImage_pal func_PAL_0026E838 #define gfx_draw_splash_screen_frame_pal func_PAL_0026E928 #define RunBootTitleLoop_pal func_PAL_0026EC50 -#define stub_empty_2_pal func_PAL_0026F580 -#define stub_empty_5_pal func_PAL_0026F598 -#define stub_empty_9_pal func_PAL_0026F5B8 -#define stub_empty_19_pal func_PAL_0026F608 -#define stub_empty_21_pal func_PAL_0026F620 -#define stub_empty_30_pal func_PAL_0026F670 -#define stub_empty_31_pal func_PAL_0026F678 #define tex_load_pif_from_disc_table_pal func_PAL_0026FCB8 #define cam_begin_mode_change_pal func_PAL_00270D50 #define cam_advance_blend_pal func_PAL_00270FC0 @@ -193,7 +186,6 @@ #define help_show_message_for_id_pal func_PAL_00288E20 #define subtitle_request_voice_line_pal func_PAL_00289730 #define subtitle_update_state_machine_pal func_PAL_00289AA8 -#define subtitle_box_draw_nothing_pal func_PAL_0028A468 #define DrawSubtitleBox_pal func_PAL_0028A470 #define UpdateBoltCounter_pal func_PAL_0028ACC0 #define DrawBoltCounterDeltas_pal func_PAL_0028B038 @@ -617,7 +609,6 @@ #define CalculateAimedLaunchVelocity_pal func_PAL_002FEF98 #define coll_trace_projectile_to_impact_pal func_PAL_002FF5F8 #define BeginPreviewTransition_pal func_PAL_00300130 -#define stub_empty_flags_pal func_PAL_00300300 #define UpdateObjectPreviewSequence_pal func_PAL_003004C8 #define part_spawn_mode_effect_object_pal func_PAL_00300C98 #define EmitParticlesBeforeCamera_pal func_PAL_00300EA8 @@ -729,7 +720,6 @@ #define part_spawn_flying_chunk_b_pal func_PAL_0032B4A8 #define part_emit_spark_burst_pal func_PAL_0032B650 #define hero_check_under_falling_object_pal func_PAL_0032B730 -#define moby_do_nothing_pal func_PAL_0032B920 #define blast_update_pal func_PAL_0032B930 #define part_init_trail_sparkle_pairs_pal func_PAL_0032C220 #define part_claim_debris_piece_pal func_PAL_0032C3B0 @@ -778,9 +768,7 @@ #define msg_box_init_short_pal func_PAL_0033A528 #define text_panel_mode_scale_pal func_PAL_0033A598 #define text_panel_update_fade_pal func_PAL_0033A5F0 -#define ui_nop_c_pal func_PAL_0033A930 #define text_panel_draw_pal func_PAL_0033A9B0 -#define ui_nop_d_pal func_PAL_0033AE40 #define mission_screen_init_parts_pal func_PAL_0033AEF8 #define mission_screen_init_pal func_PAL_0033AF68 #define mission_screen_place_parts_pal func_PAL_0033B218 @@ -891,7 +879,6 @@ #define tab_menu_get_records_pal func_PAL_00343638 #define tab_menu_switch_tab_pal func_PAL_00343690 #define tab_menu_update_cursor_pal func_PAL_003437C8 -#define tab_menu_noop_pal func_PAL_00343830 #define tab_menu_update_list_pal func_PAL_00343838 #define tab_menu_update_pal func_PAL_00343928 #define tab_menu_draw_list_pal func_PAL_00343AD0 diff --git a/include/names/us2.h b/include/names/us2.h index 5557e5c9e..9c73f1ee2 100644 --- a/include/names/us2.h +++ b/include/names/us2.h @@ -123,14 +123,7 @@ #define g_moby_array_cursor D_US2_L19_001B1F5C #define g_moby_spawn_counter D_US2_L19_001B1F60 #define RunBootTitleLoop_us2 func_US2_0026EDE8 -#define stub_empty_2_us2 func_US2_0026F718 -#define stub_empty_5_us2 func_US2_0026F730 -#define stub_empty_9_us2 func_US2_0026F750 -#define stub_empty_19_us2 func_US2_0026F7A0 -#define stub_empty_21_us2 func_US2_0026F7B8 -#define stub_empty_31_us2 func_US2_0026F808 -#define actuator_calc_power_us2 func_US2_0026F810 -#define stub_empty_32_us2 func_US2_0026F818 +#define stub_empty_us2 func_US2_0026F7E0 #define cam_update_state_us2 func_US2_00272378 #define seq_update_disc_player_us2 func_US2_00278FD0 #define gfx_configure_projection_us2 func_US2_0027B858 @@ -453,9 +446,7 @@ #define msg_box_init_short_us2 func_US2_00339678 #define text_panel_get_scale_us2 func_US2_003396E8 #define text_panel_update_fade_us2 func_US2_00339740 -#define ui_nop_c_us2 func_US2_00339A80 #define text_panel_draw_us2 func_US2_00339B00 -#define ui_nop_d_us2 func_US2_00339F90 #define mission_screen_init_parts_us2 func_US2_0033A048 #define mission_screen_init_us2 func_US2_0033A0B8 #define mission_screen_place_parts_us2 func_US2_0033A368 diff --git a/src/pal/game/0026EC50.c b/src/pal/game/0026EC50.c deleted file mode 100644 index 364e27602..000000000 --- a/src/pal/game/0026EC50.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -unsigned int stub_empty_2_pal(void) -{ - return 0; -} - diff --git a/src/pal/game/0026F598.c b/src/pal/game/0026F598.c deleted file mode 100644 index d7cb74d5f..000000000 --- a/src/pal/game/0026F598.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -void stub_empty_5_pal(void) -{ -} - diff --git a/src/pal/game/0026F5B8.c b/src/pal/game/0026F5B8.c deleted file mode 100644 index 3caffc8dc..000000000 --- a/src/pal/game/0026F5B8.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -unsigned int stub_empty_9_pal(void) -{ - return 0; -} - diff --git a/src/pal/game/0026F608.c b/src/pal/game/0026F608.c deleted file mode 100644 index cb6f1f4d2..000000000 --- a/src/pal/game/0026F608.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -void stub_empty_19_pal(void) -{ -} - -void stub_empty_21_pal(void) -{ -} - diff --git a/src/pal/game/0026F670-flags.c b/src/pal/game/0026F670-flags.c deleted file mode 100644 index 538c31384..000000000 --- a/src/pal/game/0026F670-flags.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Empty stub (PAL copy of stub_empty_31). */ -void stub_empty_31_pal(void) { -} diff --git a/src/pal/game/0026F670.c b/src/pal/game/0026F670.c deleted file mode 100644 index c3afa4e91..000000000 --- a/src/pal/game/0026F670.c +++ /dev/null @@ -1,10 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Empty stub that returns 0 (PAL copy of stub_empty_30). */ -unsigned int stub_empty_30_pal(void) -{ - return 0; -} - - diff --git a/src/pal/game/00272208-qcopy.c b/src/pal/game/00272208-qcopy.c index 39b39319e..308bc59d8 100644 --- a/src/pal/game/00272208-qcopy.c +++ b/src/pal/game/00272208-qcopy.c @@ -10,7 +10,7 @@ extern void cam_select_coll_masks(void); extern void cam_update_follow_hero(void); extern int cam_update_active(void); extern void cam_begin_mode_change_pal(void *); -extern int stub_empty_22(void); +extern int stub_empty_21(void); extern void FastVecCross(void *, void *, void *); extern void vec_scale_to_length(void *, void *, float); extern void mat_get_euler_angles(void *, void *); @@ -43,7 +43,7 @@ void cam_update_state_pal(void) { qcopy(d + 0x380, obj + 0x10); qcopy(d + 0x390, obj + 0x20); } - if (stub_empty_22()) { + if (stub_empty_21()) { p = g_active_camera + 0x140; qcopy(p, g_camera_state_block); qcopy(p + 0x230, g_camera_state_block + 0x10); diff --git a/src/pal/game/00287018-g8.c b/src/pal/game/00287018-g8.c index 67bf13019..b8de4a52d 100644 --- a/src/pal/game/00287018-g8.c +++ b/src/pal/game/00287018-g8.c @@ -146,7 +146,7 @@ extern void lerp_vector(void *, const void *, const void *, float); extern void mat_build_rotation_from_angles(void *, float *); extern void vec_fast_normalize3(void *, const void *, const void *, float); extern void quaternion_to_rotation_basis(const void *, void *); -extern void stub_empty_21_pal(void); +extern void stub_empty_20(void); extern void hud_request_letterbox_bars(void); extern void menu_set_state_word_three(void); extern int hud_set_slot_contents(int, int, void (*)(unsigned char *), void (*)(), void (*)(), int, int); @@ -603,7 +603,7 @@ void UpdateModalState_pal(void) g_modal_state.camera_active = 1; g_modal_state.phase = 1; if (g_screen_mode_flag != 1) - stub_empty_21_pal(); + stub_empty_20(); g_modal_clear_flag = 0; g_modal_counter = ref_00286738_00; hud_request_letterbox_bars(); @@ -611,7 +611,7 @@ void UpdateModalState_pal(void) break; case 1: if (g_screen_mode_flag != 1) { - stub_empty_21_pal(); + stub_empty_20(); hud_set_slot_contents(0x23, 0, menu_init_panel_layout, weapon_wheel_update_select, weapon_wheel_draw, 0, 0); } else { hud_set_slot_contents(0x23, 0, weapon_wheel_init, UpdateRadialMenuSelection, DrawRadialSelectorPanel, 0, 0); @@ -636,7 +636,7 @@ void UpdateModalState_pal(void) break; case 2: if (g_screen_mode_flag != 1) { - stub_empty_21_pal(); + stub_empty_20(); hud_set_slot_contents(0x23, 0, menu_init_panel_layout, weapon_wheel_update_select, weapon_wheel_draw, 0, 0); } else { hud_set_slot_contents(0x23, 0, weapon_wheel_init, UpdateRadialMenuSelection, DrawRadialSelectorPanel, 0, 0); @@ -660,7 +660,7 @@ void UpdateModalState_pal(void) break; case 3: if (g_screen_mode_flag != 1) - stub_empty_21_pal(); + stub_empty_20(); hud_clear_flag_b(); hud_clear_flag_a(); { request_end_slot(0, 0); break; } diff --git a/src/pal/game/00289AA8-flags.c b/src/pal/game/00289AA8-flags.c deleted file mode 100644 index c01594c5e..000000000 --- a/src/pal/game/00289AA8-flags.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Empty function: does nothing. */ -void subtitle_box_draw_nothing_pal(void) { -} diff --git a/src/pal/game/00289AA8-sw.c b/src/pal/game/00289AA8-sw.c index 839ff1002..858f3a038 100644 --- a/src/pal/game/00289AA8-sw.c +++ b/src/pal/game/00289AA8-sw.c @@ -22,7 +22,7 @@ extern void gfx_draw_rounded_box(int top, int bottom, int left, int right, int a extern void level_set_rect_pal(int alpha, int color, float top, float bottom, float left, float right); extern void FontSetWindow(unsigned short *, int, int, int, int, int, int, int, int); extern void text_draw_window_medium(unsigned short *, unsigned long long, unsigned char *, int); -extern void subtitle_box_draw_nothing_pal(void); +extern void subtitle_empty_b(void); /* Draws the subtitle box and its text, growing, fading and shrinking it by state (PAL: level_set_rect_pal draws the border). */ void DrawSubtitleBox_pal(void) @@ -56,12 +56,12 @@ void DrawSubtitleBox_pal(void) g_subtitle_state.x - g_subtitle_state.box_half_width, g_subtitle_state.x + g_subtitle_state.box_half_width); } else { - subtitle_box_draw_nothing_pal(); + subtitle_empty_b(); } break; } case 2: - subtitle_box_draw_nothing_pal(); + subtitle_empty_b(); break; case 3: { int frames, width, height, y, x, offset; @@ -87,7 +87,7 @@ void DrawSubtitleBox_pal(void) g_subtitle_state.x - g_subtitle_state.box_half_width, g_subtitle_state.x + g_subtitle_state.box_half_width); } else { - subtitle_box_draw_nothing_pal(); + subtitle_empty_b(); } break; } @@ -128,7 +128,7 @@ void DrawSubtitleBox_pal(void) g_subtitle_state.y + g_subtitle_state.offset, 16, 3); text_draw_window_medium(layout, color, text, -1); } else { - subtitle_box_draw_nothing_pal(); + subtitle_empty_b(); } break; } @@ -156,7 +156,7 @@ void DrawSubtitleBox_pal(void) g_subtitle_state.y + height + g_subtitle_state.offset, g_subtitle_state.x - width, g_subtitle_state.x + width); } else { - subtitle_box_draw_nothing_pal(); + subtitle_empty_b(); } break; } diff --git a/src/pal/game/002B57C8-g8.c b/src/pal/game/002B57C8-g8.c index c41e42693..fa39a61bc 100644 --- a/src/pal/game/002B57C8-g8.c +++ b/src/pal/game/002B57C8-g8.c @@ -25,7 +25,7 @@ extern void UpdateViewContext(void); extern void scene_end_playback_pal(void); extern void shop_reset_menu_camera_pal(void); extern void moby_show_all(void); -extern void stub_empty_flags_pal(void); +extern void game_noop(void); extern void gfx_lighting_wrapper_pal(void); extern void math_trap_always(void); extern void request_set_setting_a_pal(int); @@ -99,7 +99,7 @@ void mode_apply_pending_change_pal(void) moby_show_all(); goto E1; L1_8: - stub_empty_flags_pal(); + game_noop(); goto E1; L1_9: gfx_lighting_wrapper_pal(); diff --git a/src/pal/game/002CBD80-g8.c b/src/pal/game/002CBD80-g8.c index a93f1b04e..4d08e3ea8 100644 --- a/src/pal/game/002CBD80-g8.c +++ b/src/pal/game/002CBD80-g8.c @@ -15,13 +15,13 @@ extern int g_pause_widget_icons_c[1] __attribute__((sda)); extern int g_pause_widget_icons_d[1] __attribute__((sda)); extern int g_pause_widget_data[]; extern unsigned char g_hero_state[]; -extern int stub_empty_23(void), stub_empty_24(void), stub_empty_25(void), stub_empty_26(void), stub_empty_27(void), stub_empty_28(void), stub_empty_29(void), menu_always_return_true(void); +extern int stub_empty_22(void), stub_empty_23(void), stub_empty_24(void), stub_empty_25(void), stub_empty_26(void), stub_empty_27(void), stub_empty_28(void), menu_always_return_true(void); extern void menu_set_field_448_pal(char *, int), menu_set_field_44c_pal(char *, int), menu_load_sprites_from_values(char *, int *), menu_set_table_slot_pal(char *, int, int), menu_set_icon_count_and_icons_pal(char *, int, int *); extern int UpdateMenuChoiceListWidgets_pal(char *, int); void ConfigureMenuChoiceList_pal(void) { if (!g_resident_data_base[0]) return; - if (stub_empty_27()) { + if (stub_empty_26()) { menu_set_field_44c_pal((g_resident_data_base[0] + 0x39160), 1); menu_set_icon_count_and_icons_pal((g_resident_data_base[0] + 0x39160), 5, g_pause_icons_five_a); menu_load_sprites_from_values((g_resident_data_base[0] + 0x39160), g_pause_sprite_values); @@ -35,7 +35,7 @@ void ConfigureMenuChoiceList_pal(void) menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 1, 1); menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 4, 1); { char *p = (g_resident_data_base[0] + 0x39160); *(int *)(p + 0x4ac) = 0; } - } else if (stub_empty_24() && stub_empty_25()) { + } else if (stub_empty_23() && stub_empty_24()) { menu_set_field_44c_pal((g_resident_data_base[0] + 0x39160), 1); menu_set_icon_count_and_icons_pal((g_resident_data_base[0] + 0x39160), 5, g_pause_icons_five_b); menu_load_sprites_from_values((g_resident_data_base[0] + 0x39160), g_pause_sprite_values); @@ -43,13 +43,13 @@ void ConfigureMenuChoiceList_pal(void) *(int **)(p + 0x484) = g_pause_widget_icons_c; menu_set_table_slot_pal(p, 0, 1); } - menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 1, stub_empty_23() ^ 1); - menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 2, stub_empty_23() ^ 1); + menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 1, stub_empty_22() ^ 1); + menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 2, stub_empty_22() ^ 1); menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 3, 1); - menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 4, stub_empty_23() ^ 1); + menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 4, stub_empty_22() ^ 1); menu_set_field_448_pal((g_resident_data_base[0] + 0x39160), 0); { char *p = (g_resident_data_base[0] + 0x39160); *(int *)(p + 0x4ac) = 0; } - } else if (stub_empty_26()) { + } else if (stub_empty_25()) { menu_set_field_44c_pal((g_resident_data_base[0] + 0x39160), 1); menu_set_icon_count_and_icons_pal((g_resident_data_base[0] + 0x39160), 3, g_pause_icons_three); menu_load_sprites_from_values((g_resident_data_base[0] + 0x39160), g_pause_sprite_values); @@ -61,7 +61,7 @@ void ConfigureMenuChoiceList_pal(void) menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 1, 1); menu_set_table_slot_pal((g_resident_data_base[0] + 0x39160), 2, 1); { char *p = (g_resident_data_base[0] + 0x39160); *(int *)(p + 0x4ac) = 0; } - } else if (stub_empty_29() == 0x31 || stub_empty_28() || stub_empty_29() == 0x1C) { + } else if (stub_empty_28() == 0x31 || stub_empty_27() || stub_empty_28() == 0x1C) { menu_set_field_44c_pal((g_resident_data_base[0] + 0x39160), 1); menu_set_icon_count_and_icons_pal((g_resident_data_base[0] + 0x39160), 2, g_pause_icons_two); menu_load_sprites_from_values((g_resident_data_base[0] + 0x39160), g_pause_sprite_values); diff --git a/src/pal/game/002CE0B0.c b/src/pal/game/002CE0B0.c index dcab03e34..33b9c001a 100644 --- a/src/pal/game/002CE0B0.c +++ b/src/pal/game/002CE0B0.c @@ -3,20 +3,20 @@ #include "common.h" extern int g_menu_input_flags; extern int menu_update_choice_list_pal(int); -extern unsigned int stub_empty_26(void); -extern unsigned int stub_empty_26(void); -extern unsigned int stub_empty_26(void); -extern unsigned int stub_empty_28(void); +extern unsigned int stub_empty_25(void); +extern unsigned int stub_empty_25(void); +extern unsigned int stub_empty_25(void); +extern unsigned int stub_empty_27(void); +extern unsigned int stub_empty_27(void); extern unsigned int stub_empty_28(void); -extern unsigned int stub_empty_29(void); extern int menu_handle_step_simple(int); extern int menu_handle_mode_action(int); extern int menu_run_action_by_index(int); extern int menu_handle_command_pal(int); extern int snd_play_from_global_bank(int, unsigned int, void *); +extern unsigned int stub_empty_23(void); extern unsigned int stub_empty_24(void); -extern unsigned int stub_empty_25(void); -extern unsigned int stub_empty_27(void); +extern unsigned int stub_empty_26(void); /* Reads the menu input flags and runs the handler for the current menu kind, playing a click when the input was handled (PAL). */ int menu_handle_button_input_pal(void) @@ -28,17 +28,17 @@ int menu_handle_button_input_pal(void) result = 1; } else if (flags & 0x40) { result = menu_update_choice_list_pal(flags); - if (stub_empty_24() && stub_empty_25()) { + if (stub_empty_23() && stub_empty_24()) { result = menu_handle_command_pal(result); - } else if (stub_empty_27()) { - result = menu_handle_mode_action(result); } else if (stub_empty_26()) { + result = menu_handle_mode_action(result); + } else if (stub_empty_25()) { result = menu_handle_step_with_reset_pal(result); - } else if (stub_empty_29() == 0x31) { + } else if (stub_empty_28() == 0x31) { result = menu_handle_step_simple(result); - } else if (stub_empty_28()) { + } else if (stub_empty_27()) { result = menu_handle_step_simple(result); - } else if (stub_empty_29() == 0x1C) { + } else if (stub_empty_28() == 0x1C) { result = menu_handle_step_simple(result); } else { result = menu_run_action_by_index(result); diff --git a/src/pal/game/002D5FF0.c b/src/pal/game/002D5FF0.c index 6e733d184..1689d2d4a 100644 --- a/src/pal/game/002D5FF0.c +++ b/src/pal/game/002D5FF0.c @@ -151,12 +151,12 @@ extern int g_map_overlay_state[]; extern void FadeToBlack(int); extern void menu_set_pause_scale_inverse(float); extern int snd_play_from_global_bank(int, unsigned int, void *); -extern int stub_empty_25(void); -extern int stub_empty_25(void); +extern int stub_empty_24(void); +extern int stub_empty_24(void); extern void data_set_small_value_and_refresh(int, int); extern int request_begin_slot(int, int, int, int, int); extern int menu_update_info_panel_pal(int); -extern int stub_empty_24(void); +extern int stub_empty_23(void); /* Handles input on the map page: close, select or move the map target, starting the level load or message when a new target is chosen (PAL). */ int menu_page_select_handle_input_pal(void) @@ -192,7 +192,7 @@ int menu_page_select_handle_input_pal(void) snd_play_from_global_bank(4, 0, 0); if (base[0x230 / 4] != 0 && g_mission_active_flag == 0 && base[0x230 / 4] == 2) { request_begin_slot(6, 2, 1, 0x19, 0); - } else if (stub_empty_24() && stub_empty_25()) { + } else if (stub_empty_23() && stub_empty_24()) { data_set_small_value_and_refresh(g_map_overlay_state[0x230 / 4], 1); } else { request_begin_slot(6, 2, 1, g_map_overlay_state[0x230 / 4], 0); diff --git a/src/pal/game/002E7B78-cc-g8.c b/src/pal/game/002E7B78-cc-g8.c index a0a074dae..ce2a70458 100644 --- a/src/pal/game/002E7B78-cc-g8.c +++ b/src/pal/game/002E7B78-cc-g8.c @@ -69,8 +69,8 @@ extern TransitionMoby *g_moby_pool_end; extern void mem_clear(void *, int, int); extern void gfx_select_packet_buffer_setup(void); -extern unsigned int stub_empty_9_pal(int, int); -extern void stub_empty_4(void); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_3(void); extern void load_parts_set_from_disc_pal(int, int); extern void load_select_segment_update_world(int); extern int UpdateSoundVoices_pal(void); @@ -105,9 +105,9 @@ void level_transition_scene_start_pal(int mode) g_screen_fade = 1.0f; g_packet_buffer_size = offset; g_screen_flash_alpha = 0; - stub_empty_9_pal(0x61, 2); + stub_empty_8(0x61, 2); g_hero_state.flag = 1; - stub_empty_4(); + stub_empty_3(); object = g_hero_moby_default.object; pool_moby = g_moby_pool_end; diff --git a/src/pal/game/002E8030-qcopy.c b/src/pal/game/002E8030-qcopy.c index 17eaf5ca8..533ecacfa 100644 --- a/src/pal/game/002E8030-qcopy.c +++ b/src/pal/game/002E8030-qcopy.c @@ -5,10 +5,10 @@ typedef int TI128 __attribute__((mode(TI))); extern char g_hero_state[]; extern char g_hero_moby_default[]; extern void music_Unpause(void); -extern void stub_empty_5_pal(void); -extern void stub_empty_10(int); -extern void stub_empty_19_pal(void); -extern void stub_empty_15(char *, void *, int, int); +extern void stub_empty_4(void); +extern void stub_empty_9(int); +extern void stub_empty_18(void); +extern void stub_empty_14(char *, void *, int, int); extern void cam_set_transition_frames(float); extern void pad_clear_port_state(void); extern float FastAddRotations(float, float); @@ -22,13 +22,13 @@ void scene_end_playback_pal(void) { music_Unpause(); state = g_hero_state; state[0x22B5] = 0; - stub_empty_5_pal(); + stub_empty_4(); mode_block = g_hero_moby_default; if (*(short *)(mode_block + 0x2A) != 0) { - stub_empty_10(1); + stub_empty_9(1); state[0x22B5] = 0; - stub_empty_5_pal(); - stub_empty_19_pal(); + stub_empty_4(); + stub_empty_18(); cam_set_transition_frames(7.0f); pad_clear_port_state(); } else { @@ -36,8 +36,8 @@ void scene_end_playback_pal(void) { *(TI128 *)pose = *(TI128 *)state; pose[2] = FastAddRotations(pose[2], -2.3f); mode_block += 0x70; - stub_empty_15(mode_block, pose, 0, 1); - stub_empty_15(mode_block, state, 0, 0); + stub_empty_14(mode_block, pose, 0, 1); + stub_empty_14(mode_block, state, 0, 0); cam_set_transition_frames(7.0f); pad_clear_port_state(); } diff --git a/src/pal/game/002EA0B0-flags.c b/src/pal/game/002EA0B0-flags.c index c74bc8243..47713d2cd 100644 --- a/src/pal/game/002EA0B0-flags.c +++ b/src/pal/game/002EA0B0-flags.c @@ -123,7 +123,7 @@ extern short g_hud_offset_flag; extern float g_hero_attach_offset[] SDATA(D_001AC1B0); extern float g_companion_attach_offset[] SDATA(D_001AC1C0); extern void game_reset_frame_counters(void), moby_update_visible_objects(void), snd_run_callbacks(void); -extern void stub_empty_3(void), part_update_all(void), gfx_select_packet_buffer_setup(void); +extern void stub_empty_2(void), part_update_all(void), gfx_select_packet_buffer_setup(void); extern void load_select_segment_update_world(int), FadeToBlack(int), UpdateViewContext(void); extern void moby_mark_spawned(void *), update_moby_animation_state(void *), func_002A0F48(void *); extern int request_begin_slot(int,int,int,int,int); @@ -135,7 +135,7 @@ extern float FastAddRotations(float,float), IntToFloat(int), fast_subtract_rotat extern void func_00129178(void *), pad_vib_routine_f(void *,void *,float); extern void pad_vib_routine_g(void *,void *,float), pad_vib_routine_e(void *,void *,float); extern void FastVecScale(void *,void *,float), moby_run_ground_check(void *); -extern void stub_empty_18(void *), stub_empty_17(void *,int), UpdateEquipmentPieces(void *); +extern void stub_empty_17(void *), stub_empty_16(void *,int), UpdateEquipmentPieces(void *); extern void gfx_register_overlay_draw_callback(void *,void *), gfx_register_world_draw_callback(void *,void *); extern void render_environment_mapped_object(void), gfx_draw_ground_shadow(void), part_draw_glow_quads(void); extern float math_fast_sin_or_cos_a(float); @@ -176,7 +176,7 @@ int update_playback_scene_pal(void) game_reset_frame_counters(); moby_update_visible_objects(); snd_run_callbacks(); - stub_empty_3(); + stub_empty_2(); part_update_all(); (&g_scene_playback_state)->stream_frame++; (&g_scene_playback_state)->frame++; @@ -328,8 +328,8 @@ int update_playback_scene_pal(void) else if ((&g_scene_playback_state)->frame>=174) object->shadow_range=24; } if (object->shadow_range) moby_run_ground_check(object); - if (object->class_id==10) stub_empty_18(object); - if (object->class_id==0) stub_empty_17(object,0); + if (object->class_id==10) stub_empty_17(object); + if (object->class_id==0) stub_empty_16(object,0); if (object->class_id==0xD54) { PlaybackMoby *p; int j, cast; @@ -390,7 +390,7 @@ int update_playback_scene_pal(void) game_reset_frame_counters(); moby_update_visible_objects(); snd_run_callbacks(); - stub_empty_3(); + stub_empty_2(); part_update_all(); if ((&g_hero_moby_default)->frame==0) { music_Pause(0); diff --git a/src/pal/game/002EBA30-flags.c b/src/pal/game/002EBA30-flags.c index 73beaf6f1..b1e8451a4 100644 --- a/src/pal/game/002EBA30-flags.c +++ b/src/pal/game/002EBA30-flags.c @@ -82,7 +82,7 @@ extern void update_equipment_pieces_pal(void *); extern void render_environment_mapped_object_pal(void); extern void gfx_register_overlay_draw_callback(void *, void *); extern void func_002A0F48(void *); -extern void stub_empty_17(void *, int); +extern void stub_empty_16(void *, int); extern s32 UpdateSoundVoices_pal(void); extern void UpdateLightingEnvironment(void); extern void game_update_idle_frame_counters_pal(void); @@ -165,7 +165,7 @@ int cutscene_update_scripted_actors_pal(void) func_002A0F48(actor); if (actor->type == 0) { D_00189E20_9.focus = actor; - stub_empty_17(actor, 1); + stub_empty_16(actor, 1); } } } diff --git a/src/pal/game/002F6208-g8.c b/src/pal/game/002F6208-g8.c index 36153d36a..2f82fcc7c 100644 --- a/src/pal/game/002F6208-g8.c +++ b/src/pal/game/002F6208-g8.c @@ -115,8 +115,8 @@ extern void music_Pause(int); extern s16 snd_pump_music_and_disc_read_pal(int); extern void mem_clear(void *, int, int); extern void subtitle_clear_state(void); -extern unsigned int stub_empty_9_pal(int, int); -extern void stub_empty_4(void); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_3(void); extern int load_chunk_part_from_disc_pal(int); extern void load_relocate_world_object_parts(void); extern void gfx_empty_stub(void); @@ -171,9 +171,9 @@ void cutscene_start_pal(int cutscene_id) g_screen_flash_alpha = 0; g_mode_fade_scale = 0; if (g_hero_state.active) { - stub_empty_9_pal(0x61, 2); + stub_empty_8(0x61, 2); g_hero_state.flag = 1; - stub_empty_4(); + stub_empty_3(); } if (g_dialogue_talk_state.moby) *(unsigned short *)(g_dialogue_talk_state.moby + 0x34) |= 1; @@ -223,11 +223,11 @@ extern void cam_set_transition_frames(float); extern void game_reset_frame_counters(void); extern void UpdateViewContext(void); extern void moby_mark_spawned(void *); -extern void stub_empty_10(int); +extern void stub_empty_9(int); extern float coll_probe_ground_height_below(void *, int, float); extern float math_fabs(float); -extern void stub_empty_5_pal(void); -extern void stub_empty_15(void *, void *, int, int); +extern void stub_empty_4(void); +extern void stub_empty_14(void *, void *, int, int); extern void cutscene_run_dialogue_node(void *, void *, int); extern void music_set_active_track_value(int); extern void hero_destroy_equipment_pieces(void); @@ -269,20 +269,20 @@ void cutscene_end_pal(void) } hero = &g_hero_state; if (hero->active) { - stub_empty_10(1); + stub_empty_9(1); hero_ground = coll_probe_ground_height_below(hero->pos, 0, 0.5f); if (2.0f < hero_ground) { if (math_fabs(hero->pos[2] - hero_ground) < 4.5f) hero->pos[2] = hero_ground; } g_hero_state.flag = 0; - stub_empty_5_pal(); + stub_empty_4(); scene = &g_scene_playback_state; if (scene->restore) { scene_ground = coll_probe_ground_height_below(scene->pos, 0, 0.5f); if (2.0f < scene_ground && math_fabs(scene->pos[2] - scene_ground) < 2.0f) scene->pos[2] = scene_ground; - stub_empty_15(g_scene_playback_state.pos, g_scene_playback_state.rot, 0, 1); + stub_empty_14(g_scene_playback_state.pos, g_scene_playback_state.rot, 0, 1); } } if (g_dialogue_talk_state.moby) diff --git a/src/pal/game/002F90E8-open-g8.c b/src/pal/game/002F90E8-open-g8.c index 123a9471c..586074650 100644 --- a/src/pal/game/002F90E8-open-g8.c +++ b/src/pal/game/002F90E8-open-g8.c @@ -82,8 +82,8 @@ extern void level_forward_value(int); extern void level_forward_pair(int, int); extern int PlayMobySound(int, int, void *); extern void subtitle_clear_state(void); -extern unsigned int stub_empty_9_pal(int, int); -extern void stub_empty_4(void); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_3(void); extern void matrix_mul_vec3(void *, void *, void *); extern float FastAddRotations(float, float); extern void SetCamera5Pose(void *, void *, int, int, int); @@ -208,10 +208,10 @@ void OpenVendorMenu_pal(char *moby) g_current_game_mode = 5; g_screen_fade = 0.0f; g_screen_flash_alpha = 0; - stub_empty_9_pal(97, 1); + stub_empty_8(97, 1); g_hero_state.flag22BC = 1; g_hero_state.flag22B5 = 1; - stub_empty_4(); + stub_empty_3(); if (!g_vendor_menu_state.restore) { if (g_display_mode_flag) matrix_mul_vec3(g_vendor_menu_state.position, g_shop_moby_offset_b, g_vendor_menu_state.moby + 0xC0); else matrix_mul_vec3(g_vendor_menu_state.position, g_shop_moby_offset_a, g_vendor_menu_state.moby + 0xC0); diff --git a/src/pal/game/002F96D8-g16.c b/src/pal/game/002F96D8-g16.c index fc632a07f..03de5cf66 100644 --- a/src/pal/game/002F96D8-g16.c +++ b/src/pal/game/002F96D8-g16.c @@ -16,10 +16,10 @@ extern int g_current_game_mode __attribute__((sda)); extern Vec4_2F8768 g_shop_camera_vec __attribute__((sda)); extern void set_animation_parameter(int, int); extern void hud_tick_countdown(void); -extern unsigned int stub_empty_9_pal(int, int); -extern void stub_empty_5_pal(void); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_4(void); extern int func_PAL_00299538(void); -extern void stub_empty_15(char *, void *, int, int); +extern void stub_empty_14(char *, void *, int, int); extern void matrix_mul_vec3(void *, void *, void *); extern void FastVecAdd(void *, void *, void *); extern float FastAddRotations(float, float); @@ -45,9 +45,9 @@ void shop_reset_menu_camera_pal(void) g_vendor_menu_state.f78 = -1; hud_tick_countdown(); g_current_game_mode = 0; - stub_empty_9_pal(0, 1); + stub_empty_8(0, 1); g_hero_state[0x22B5] = 0; - stub_empty_5_pal(); + stub_empty_4(); if (g_vendor_menu_state.f60 == 0) { pose_flag = func_PAL_00299538(); qcopy(&in, &g_shop_camera_vec); @@ -56,7 +56,7 @@ void shop_reset_menu_camera_pal(void) dir[0] = 0; dir[1] = 0; dir[2] = FastAddRotations(*(float *)(g_vendor_menu_state.obj + 0xF8), 3.1415927f); - stub_empty_15((char *)&out, dir, 0, pose_flag); + stub_empty_14((char *)&out, dir, 0, pose_flag); cam_set_mode_state(2); } g_vendor_menu_state.obj[0x20] = 1; diff --git a/src/pal/game/002F9898-sw.c b/src/pal/game/002F9898-sw.c index 8ae6dbf4a..0ed85ecb6 100644 --- a/src/pal/game/002F9898-sw.c +++ b/src/pal/game/002F9898-sw.c @@ -23,7 +23,7 @@ extern volatile PurchaseInput g_pad_state; extern int GetSelectedShopItemPrice(void); extern void shop_build_vendor_weapon_list(int); extern int PlayMobySound(int, int, void *); -extern int stub_empty_8(int, int); +extern int stub_empty_7(int, int); extern char *GetLocalizedString(int); extern void shop_set_message_text(int); extern void help_unlock_entry(int); diff --git a/src/pal/game/002FEC30-g8.c b/src/pal/game/002FEC30-g8.c index 660ec7dbc..ce3021699 100644 --- a/src/pal/game/002FEC30-g8.c +++ b/src/pal/game/002FEC30-g8.c @@ -12,7 +12,7 @@ extern float g_camera_eye_state[]; #define CAMERA_BASIS (&D_001B5340[0x230 / 4]) extern void FastVecScale(void *,void *,float); extern void cam_compute_view_direction(char *,char *,int); -extern unsigned int stub_empty_9_pal(int,int); +extern unsigned int stub_empty_8(int,int); extern void vec_scale_to_length(void *,void *,float); extern float FastVecDot(void *,void *); extern void FastVecSub(void *,void *,void *); @@ -58,7 +58,7 @@ void CalculateAimedLaunchVelocity_pal(Vector *output, Vector *origin, char *targ else cam_compute_view_direction((char *)&sourcePosition,(char *)&normal,0); reach=maximum; if(!targetObject) { - if(H->i[0x2294/4]==1) stub_empty_9_pal(29,1); + if(H->i[0x2294/4]==1) stub_empty_8(29,1); if((g_pad_pressed_flags&4)!=0 && H->b[0x22bc]==0) { vec_scale_to_length(&forward,CAMERA_BASIS,1.0f); projection=FastVecDot(&forward,&normal); diff --git a/src/pal/game/00300104-flags.c b/src/pal/game/00300104-flags.c deleted file mode 100644 index 015b2156e..000000000 --- a/src/pal/game/00300104-flags.c +++ /dev/null @@ -1,5 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -void stub_empty_flags_pal(void) { -} diff --git a/src/pal/game/003096D0-sw.c b/src/pal/game/003096D0-sw.c index 7335158ef..ed845c74c 100644 --- a/src/pal/game/003096D0-sw.c +++ b/src/pal/game/003096D0-sw.c @@ -47,7 +47,7 @@ typedef struct { } O_4198; extern G_4198 g_hero_state; extern s32 g_pad_pressed_flags; -extern s32 stub_empty_30(s32), math_fast_float_d(void *); +extern s32 stub_empty_29(s32), math_fast_float_d(void *); extern void moby_mark_spawned(void *), gfx_register_overlay_draw_callback(void *, void *); extern void draw_joint_aligned_beam_effect_pal(void), beam_spawn_trail_particles_pal(void *); extern s32 ref_PAL_0030A560_00(s32), math_fast_float_d(void *); diff --git a/src/pal/game/0030A9D8-g8.c b/src/pal/game/0030A9D8-g8.c index 5e792e502..8595e1299 100644 --- a/src/pal/game/0030A9D8-g8.c +++ b/src/pal/game/0030A9D8-g8.c @@ -28,8 +28,8 @@ extern Light g_dynamic_lights[]; extern int g_tether_reset_flag __attribute__((sda)), g_tether_timer __attribute__((sda)); extern u32 g_frame_counter, g_current_map_index; extern Statistics g_statistics_table[], g_progress_statistics[]; -extern int stub_empty_7(int); -extern int stub_empty_6(int, int); +extern int stub_empty_6(int); +extern int stub_empty_5(int, int); extern int math_fast_float_d(int *), FastDecTimer(short *); extern void hud_add_moby_marker(void *, u32, void *, int, int, int, float, float, float); extern s16 gfx_add_point_light(void *, int, float, float); @@ -41,7 +41,7 @@ extern void matrix_mul_vec3(void *, void *, void *), vec_scale_to_length(void *, extern void moby_transform_joint_to_world(void *, int, void *); extern void initialize_electric_water_bolt_effect_pal(char *), lock_on_update_tether_chain_pal(char *), beam_draw_ribbons_pal(void *); extern void gfx_register_overlay_draw_callback(void (*)(void *), void *), snd_stop_voice(int); -extern void stub_empty_11(void), stub_empty_12(void), gfx_free_point_light(int); +extern void stub_empty_10(void), stub_empty_11(void), gfx_free_point_light(int); /* Maintains two beam targets, their acquisition delays, ammunition and the light/sound state. */ void tesla_claw_update_pal(char *actor) { @@ -59,10 +59,10 @@ void tesla_claw_update_pal(char *actor) { g_beam_scale_factor = 0.9f; active = 0; permitted = 1; - ammo = stub_empty_7(-1); + ammo = stub_empty_6(-1); if (g_hero_state.i[0x2294 / 4] == 1) { if (!math_fast_float_d(&g_hero_state.i[0x2534 / 4])) permitted = 0; - else hud_add_moby_marker(actor, !stub_empty_7(-1) ? 0x600000FF : 0x600FFF0F, 0, 31, -1, 4, 1, 0, 90); + else hud_add_moby_marker(actor, !stub_empty_6(-1) ? 0x600000FF : 0x600FFF0F, 0, 31, -1, 4, 1, 0, 90); } else g_hero_state.i[0x2534 / 4] = 33; if ((g_pad_state[0x1A0 / 4] & g_hero_state.u[0x1230 / 4]) && (u8)actor[0x20] != 4 && (u8)actor[0x20] && !g_hero_state.b[0x22BC] && g_hero_state.i[0x2294 / 4] != 0x6F && g_hero_state.i[0x1240 / 4] >= 19 && permitted) { @@ -71,7 +71,7 @@ void tesla_claw_update_pal(char *actor) { if (FastDecTimer(&beam->ammo_timer)) { FastDecTimer(&beam->target_timer); FastDecTimer(&beam->secondary_timer); - stub_empty_6(-1, 1); + stub_empty_5(-1, 1); beam->ammo_timer = 8; } if (beam->light == -1) beam->light = gfx_add_point_light(actor + 0x10, 0, 7.5f, 0); @@ -187,7 +187,7 @@ void tesla_claw_update_pal(char *actor) { case 1: math_fast_float_d(&beam->timer); if (active) { - stub_empty_11(); + stub_empty_10(); actor[0x20] = 3; } if ((g_pad_state[0x1A4 / 4] & g_hero_state.u[0x1230 / 4]) && !g_hero_state.b[0x22BC]) { @@ -195,7 +195,7 @@ void tesla_claw_update_pal(char *actor) { if (g_statistics_table[18].count < 0xFFFF) g_statistics_table[18].count++; if (g_statistics_table[18].maximum < ((s32)g_frame_counter * 5 + 2) / 6) g_statistics_table[18].maximum = ((s32)g_frame_counter * 5 + 2) / 6; g_statistics_table[18].levels = (g_statistics_table[18].levels | (1u << g_current_map_index)) | 0x80000000u; - stub_empty_11(); + stub_empty_10(); actor[0x20] = 3; } else { beam->target = 0; @@ -204,7 +204,7 @@ void tesla_claw_update_pal(char *actor) { beam->secondary_ready = 0; actor[0x20] = 1; PlayMobySound(0, 0, actor); - stub_empty_12(); + stub_empty_11(); } } break; @@ -222,7 +222,7 @@ void tesla_claw_update_pal(char *actor) { beam->target_ready = 0; beam->secondary_ready = 0; beam->length = 0; - stub_empty_12(); + stub_empty_11(); actor[0x20] = 1; break; case 2: diff --git a/src/pal/game/0030D834-sw.c b/src/pal/game/0030D834-sw.c index c8078bb3b..1d3e1157d 100644 --- a/src/pal/game/0030D834-sw.c +++ b/src/pal/game/0030D834-sw.c @@ -24,18 +24,18 @@ extern int g_beam_reset_flag __attribute__((sda)); extern int gfx_add_point_light(void *, int, float, float); extern int math_fast_float_d(void *); extern void beam_draw_ribbons_level_pal(void *); -extern void stub_empty_12(void); +extern void stub_empty_11(void); extern void spawn_effect_burst_pal(void *, int); extern void gfx_free_point_light(int), matrix_mul_vec3(void *, void *, void *); extern void vec_scale_to_length(void *, void *, float); extern void moby_transform_joint_to_world(void *, int, void *); extern void FastVecAdd(void *, void *, void *), initialize_bolt_point_chain_pal(void *), beam_update_chain_points_pal(void *); -extern void stub_empty_12(void); +extern void stub_empty_11(void); extern void gfx_register_overlay_draw_callback(void *, void *); extern void snd_stop_voice(int); extern int PlayMobySound(int, int, void *); extern float IntToFloat(int); -extern void stub_empty_11(void); +extern void stub_empty_10(void); /* Maintains the beam's endpoint, light fade and looping sound state. */ void beam_actor_update_pal(u8 *actor) { @@ -102,11 +102,11 @@ void beam_actor_update_pal(u8 *actor) { snd_stop_voice(beam->sound); } beam->sound = -1; - if (active) { stub_empty_11(); actor[0x20] = 3; } + if (active) { stub_empty_10(); actor[0x20] = 3; } if ((((Pad *)g_pad_state)->u[0x1A4 / 4] & ((Hero *)g_hero_state)->u[0x1230 / 4]) && !((Hero *)g_hero_state)->b[0x22BC]) { spawn_effect_burst_pal(actor, 20); - if (active) { stub_empty_11(); actor[0x20] = 3; } - else { PlayMobySound(2, 0, actor); beam->target = 0; actor[0x20] = 1; stub_empty_12(); } + if (active) { stub_empty_10(); actor[0x20] = 3; } + else { PlayMobySound(2, 0, actor); beam->target = 0; actor[0x20] = 1; stub_empty_11(); } } break; case 3: @@ -116,7 +116,7 @@ void beam_actor_update_pal(u8 *actor) { } if ((((Pad *)g_pad_state)->u[0x1A8 / 4] & ((Hero *)g_hero_state)->u[0x1230 / 4]) || !active || ((Hero *)g_hero_state)->b[0x22BC]) { beam->target = 0; beam->length = 0; - stub_empty_12(); actor[0x20] = 1; + stub_empty_11(); actor[0x20] = 1; } break; case 2: case 4: case 5: default: break; diff --git a/src/pal/game/0030F2B0-sw.c b/src/pal/game/0030F2B0-sw.c index 0d980c60d..24b8a3b4c 100644 --- a/src/pal/game/0030F2B0-sw.c +++ b/src/pal/game/0030F2B0-sw.c @@ -22,7 +22,7 @@ extern s32 g_game_time[] __attribute__((sda)); extern s32 g_ammo_pickup_time[] __attribute__((sda)); extern s32 D_001B24A8_gp SDATA(D_001B24A8); extern s32 math_fast_float_d(s32 *); -extern u32 stub_empty_8(s32, s32); +extern u32 stub_empty_7(s32, s32); extern s32 snd_play_from_class_bank(s32, s32, void *, s32); extern f32 ApproachValue(f32 *, f32, f32); extern void FastVecAdd(void *, void *, void *); @@ -98,7 +98,7 @@ void ammo_pickup_update_game_pal(u8 *object) if (EF(object,0x18)i[0x2294 / 4] == 1) - stub_empty_9_pal(0x1D, 1); + stub_empty_8(0x1D, 1); data = *(FollowVars **)(self + 0x68); if (data == 0) return; @@ -130,10 +130,10 @@ void swingshot_update_pal(u8 *self) hit_pos[2] += 0.5f; if (CollLine(hit_pos, ((Hero *)g_hero_state)->ptr[0xAA4 / 4] + 0x10, 2, 0, 0) != 0) { if (((Hero *)g_hero_state)->f[0x31C / 4] > 0.5f) { - stub_empty_9_pal(6, 1); + stub_empty_8(6, 1); } else { - stub_empty_9_pal(0, 0); - stub_empty_13(stub_empty_2_pal(0), 0, 12.0f); + stub_empty_8(0, 0); + stub_empty_12(stub_empty(0), 0, 12.0f); } self[0x20] = 6; } else if (dist < fast_vec_dist(data->target + 0x10, ((Hero *)g_hero_state)->ptr[0xAA4 / 4] + 0x10)) { @@ -156,9 +156,9 @@ void swingshot_update_pal(u8 *self) delta[2] += 0.5f; if (CollLine(delta, ((Hero *)g_hero_state)->ptr[0xAA4 / 4] + 0x10, 2, 0, 0) != 0) { if (((Hero *)g_hero_state)->h[0x34E / 2] != 0) { - stub_empty_9_pal(6, 1); + stub_empty_8(6, 1); } else { - stub_empty_9_pal(0, 1); + stub_empty_8(0, 1); } self[0x20] = 6; } else { @@ -172,20 +172,20 @@ void swingshot_update_pal(u8 *self) if (data->target != 0 && fast_vec_dist(data->target + 0x10, &((Hero *)g_hero_state)->q[0x80 / 16]) > 3.5f) { if ((g_pad_pressed_flags & ((Hero *)g_hero_state)->u[0x1230 / 4]) == 0) { ((Hero *)g_hero_state)->i[0xAC8 / 4] = 1; - stub_empty_9_pal(0, 0); - stub_empty_13(stub_empty_2_pal(0), 0, 12.0f); + stub_empty_8(0, 0); + stub_empty_12(stub_empty(0), 0, 12.0f); self[0x20] = 6; } else { PlayMobySound(2, 0, (char *)self); if (((Hero *)g_hero_state)->i[0xAB8 / 4] != 0) { - stub_empty_9_pal(0x25, 1); + stub_empty_8(0x25, 1); } else { - stub_empty_9_pal(0x24, 1); + stub_empty_8(0x24, 1); } self[0x20] = 5; } } else { - stub_empty_9_pal(0, 1); + stub_empty_8(0, 1); self[0x20] = 6; } } @@ -302,10 +302,10 @@ void swingshot_update_pal(u8 *self) delta[2] += 0.5f; if (CollLine(delta, ((Hero *)g_hero_state)->ptr[0xB10 / 4] + 0x10, 2, 0, 0) != 0) { if (((Hero *)g_hero_state)->f[0x31C / 4] > 0.5f) { - stub_empty_9_pal(6, 1); + stub_empty_8(6, 1); } else { - stub_empty_9_pal(0, 0); - stub_empty_13(stub_empty_2_pal(0), 0, 12.0f); + stub_empty_8(0, 0); + stub_empty_12(stub_empty(0), 0, 12.0f); } self[0x20] = 0x13; } else { diff --git a/src/pal/game/003164C0-sw.c b/src/pal/game/003164C0-sw.c index 22276c5a2..6904b81db 100644 --- a/src/pal/game/003164C0-sw.c +++ b/src/pal/game/003164C0-sw.c @@ -37,12 +37,11 @@ extern int CollLine(void *, void *, int, void *, int); extern void moby_compute_throw_velocity(void *, void *, void *, float, float, float); extern int vec_fast_helper_b(void *); extern int math_fast_float_d(void *); -extern unsigned int stub_empty_8(int, int); -extern int stub_empty_5(int, int); -extern void stub_empty_10(int); +extern unsigned int stub_empty_7(int, int); +extern int stub_empty_5(); +extern void stub_empty_9(int); extern int PlayMobySound(int, int, void *); -extern int stub_empty_6(int); -extern void stub_empty_11(); +extern void stub_empty_10(); extern float moby_get_anim_value(void *); extern void thrown_item_launch(void *, void *, void *); extern void AddMobyToIndexList(void *, void *, int); @@ -50,9 +49,9 @@ extern void *thrown_item_spawn(void *, void *, void *); #define THROW_FLOAT(p,o) (*(float *)((char *)(p)+(o))) #define THROW_INT(p,o) (*(int *)((char *)(p)+(o))) #define THROW_PTR(p,o) (*(unsigned char **)((char *)(p)+(o))) -extern unsigned int stub_empty_9_pal(int, int); -extern void stub_empty_12(); -extern int stub_empty_7(int); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_11(); +extern int stub_empty_6(int); /* Updates the hero's item thrower. It holds the item in the hand, shows the aim, and throws it when fire is pressed (PAL build). */ void UpdateProjectileThrower_pal(unsigned char *self) @@ -95,7 +94,7 @@ void UpdateProjectileThrower_pal(unsigned char *self) } if (!THROW_PTR(data,0x50) || THROW_PTR(data,0x50)[0x20]==0xFE || THROW_PTR(data,0x50)[0x20]==0xFD) THROW_PTR(data,0x50)=0; - if (g_hero_state.mode==1) stub_empty_9_pal(0x1D,1); + if (g_hero_state.mode==1) stub_empty_8(0x1D,1); if (THROW_PTR(data,0x50) && !g_hero_state.locked) { held_data=THROW_PTR(THROW_PTR(data,0x50),0x68); velocity.q=0; @@ -166,11 +165,11 @@ void UpdateProjectileThrower_pal(unsigned char *self) if(self[0x60]&2) self[0x20]=2; /* Fall through. */ case 2: - if(g_hero_state.mode==1) stub_empty_9_pal(0x1D,1); + if(g_hero_state.mode==1) stub_empty_8(0x1D,1); if(self[0x42]==self[0x43] && self[0x42]==3 && (self[0x60]&2)) anim_start_blended(self,1,0,2); if(THROW_FLOAT(data,0x58)==0 && !g_hero_state.locked && (g_pad_state.buttons&g_hero_state.fireMask)) { if(stub_empty_5(-1,1)) { - stub_empty_11(4); + stub_empty_10(4); if(self[0x43]!=3) anim_start_blended(self,3,0,2); self[0x20]=3; { @@ -179,8 +178,8 @@ void UpdateProjectileThrower_pal(unsigned char *self) } } else PlayMobySound(4,0,self); } - if(!(g_pad_state.buttons&g_hero_state.fireMask) || !stub_empty_7(-1)) { - if(g_hero_state.action>=8 || !g_hero_state.active) stub_empty_12(); + if(!(g_pad_state.buttons&g_hero_state.fireMask) || !stub_empty_6(-1)) { + if(g_hero_state.action>=8 || !g_hero_state.active) stub_empty_11(); } break; case 3: @@ -202,7 +201,7 @@ void UpdateProjectileThrower_pal(unsigned char *self) } math_fast_float_d(data+0x54); if(THROW_PTR(data,0x50)) qcopy(THROW_PTR(data,0x50)+0x10,data+0x40); - else if(!THROW_INT(data,0x54) && stub_empty_7(-1)) { + else if(!THROW_INT(data,0x54) && stub_empty_6(-1)) { qzero_nc(&aim); THROW_PTR(data,0x50)=thrown_item_spawn(self,data+0x40,&aim); } diff --git a/src/pal/game/00317310-port.c b/src/pal/game/00317310-port.c index a6ebd1b6b..f34b31f68 100644 --- a/src/pal/game/00317310-port.c +++ b/src/pal/game/00317310-port.c @@ -43,13 +43,13 @@ typedef struct { char pad0[0x70]; float range; char pad74[0x6C]; } Level_00315E2 extern Level_00315E20 g_weapon_table[]; extern void moby_transform_joint_to_world(void *, int, void *); -extern unsigned int stub_empty_9_pal(int, int); +extern unsigned int stub_empty_8(int, int); extern char *FindNearestEligibleTarget(void *); extern float fast_vec_dist(void *, void *); extern float math_fabs(float); extern void hud_add_moby_marker(float, float, float, void *, u32, void *, int, int, int); extern void FastVecSub(void *, void *, void *); -extern void stub_empty_11(void); +extern void stub_empty_10(void); extern int math_fast_float_d(void *); extern void vec_fast_normalize_helper(void *, void *, float); extern void QueueMobyImpact(void *, void *); @@ -83,7 +83,7 @@ void dynamo_update_pal(u8 *moby) moby_transform_joint_to_world(moby, 0, g_emitter_origin); hero_state = g_hero_state; if (*(int *)(hero_state + 0x2294) == 1) - stub_empty_9_pal(0x1D, 1); + stub_empty_8(0x1D, 1); moby_transform_joint_to_world(moby, 0, aim); switch (moby[0x20]) { @@ -111,7 +111,7 @@ void dynamo_update_pal(u8 *moby) else g_dynamo_launch_mode = 3; moby[0x20] = 2; - stub_empty_11(); + stub_empty_10(); break; case 2: { char *player; diff --git a/src/pal/game/00320D00-pickup-g8.c b/src/pal/game/00320D00-pickup-g8.c index 6e944f6ea..833cae4b7 100644 --- a/src/pal/game/00320D00-pickup-g8.c +++ b/src/pal/game/00320D00-pickup-g8.c @@ -77,7 +77,7 @@ extern int math_fast_float_d(void *); extern float math_fabs(float); extern float vec_distance_xy(void *, void *); extern float gravity_get_center_distance(void *); -extern unsigned int stub_empty_8(int, int); +extern unsigned int stub_empty_7(int, int); extern void value_forward_three_args_pal(int, int, int); extern void moby_set_state(void *, int, int); extern int subtract_integer_with_clamp(int); @@ -158,7 +158,7 @@ void UpdateWeaponAmmoPickup_pal(PickupObject *object) if (allow) { item = data->weapon; previous = g_item_ammo_counts[item]; - stub_empty_8(item, data->amount); + stub_empty_7(item, data->amount); if (g_item_ammo_counts[item] > previous) { count = g_item_ammo_counts[item] - previous; value_forward_three_args_pal(count == 1 ? diff --git a/src/pal/game/0032AF58-sw-g8.c b/src/pal/game/0032AF58-sw-g8.c index 0c396b79e..bb336d7f4 100644 --- a/src/pal/game/0032AF58-sw-g8.c +++ b/src/pal/game/0032AF58-sw-g8.c @@ -27,7 +27,7 @@ extern void *part_spawn_bubble_pal(void *, void *, float, float); extern int math_fast_float_d(void *); extern void moby_mark_spawned(void *); extern void gfx_register_overlay_draw_callback(void *, void *); -extern void moby_do_nothing_pal(void); +extern void moby_do_nothing(void); /* Per-frame update of a falling chunk: it falls and spins, drops dust while it moves, lands on the ground or on the hero and bursts into sparks, then fades out and is freed (PAL: 50 Hz rates). */ @@ -141,5 +141,5 @@ void falling_chunk_update_pal(char *self) } break; } - gfx_register_overlay_draw_callback(moby_do_nothing_pal, self); + gfx_register_overlay_draw_callback(moby_do_nothing, self); } diff --git a/src/pal/game/0032B650.c b/src/pal/game/0032B650.c index 8e0325800..f6f1809d6 100644 --- a/src/pal/game/0032B650.c +++ b/src/pal/game/0032B650.c @@ -46,7 +46,7 @@ extern int g_surface_height_tiles[] __attribute__((sda)); extern int g_surface_box_count[] __attribute__((sda)); extern int SampleSurfaceHeightMap(float *, float *, float, float, float); extern void RippleDisturb(int, int, int, float, float, float, float); -extern int stub_empty_30_pal(void); +extern int stub_empty_30(void); /* Checks whether a falling chunk is over the hero: the chunk lands on the hero, ripples the water, counts the hit and may resume the music (PAL: same as USA v1.01). */ @@ -87,7 +87,7 @@ void hero_check_under_falling_object_pal(char *self) } if (obj_state[0x14] == 0) { RippleDisturb(g_surface_height_tiles[0], g_surface_box_count[0], 1, *(float *)(self + 0x10), *(float *)(self + 0x14), 0.5f, -0.03f); - if (stub_empty_30_pal() == 0) { + if (stub_empty_30() == 0) { object[0xBC] += 1; if (object[0xBC] >= 25) { music = g_music_state; @@ -111,8 +111,3 @@ void hero_check_under_falling_object_pal(char *self) } } - -/* Empty overlay draw callback; does nothing. */ -void moby_do_nothing_pal(void) -{ -} diff --git a/src/pal/game/0033067C-sw-g8.c b/src/pal/game/0033067C-sw-g8.c index 3c7c82f56..16c5c9ef5 100644 --- a/src/pal/game/0033067C-sw-g8.c +++ b/src/pal/game/0033067C-sw-g8.c @@ -67,7 +67,7 @@ extern void part_steer_effect_direction(int, void *, int); extern void vec_transform_or_copy(void *, void *); extern void shop_trigger_current_state_effect(void *, void *); extern void vec_add_object_direction_scaled(void *, void *, float); -extern unsigned int stub_empty_9_pal(int, int); +extern unsigned int stub_empty_8(int, int); extern void part_setup_object_effect_entry(void *, void *, void *); extern void anim_start_blended_pal(void *, int, int, int); extern int PlayMobySound(int, int, void *); @@ -175,7 +175,7 @@ void vehicle_update_ridden_pal(char *obj) break; qcopy(obj + 0x10, &collision->point); ForceClaimNotice(6, 0, 1); - stub_empty_9_pal(28, 1); + stub_empty_8(28, 1); part_setup_object_effect_entry(obj + 0x10, obj + 0xF0, obj); STATE(obj) = 2; anim_start_blended_pal(obj, 1, 0, 10); @@ -277,7 +277,7 @@ void vehicle_update_ridden_pal(char *obj) break; case 8: if (g_game_mode == 28) - stub_empty_9_pal(0, 1); + stub_empty_8(0, 1); if (*(short *)(g_follow_camera_object + 0x86) == 27) ref_L00_003FFBA0_00(); table_clear_entry_flag(update_handle); diff --git a/src/pal/game/0033423C-sw.c b/src/pal/game/0033423C-sw.c index 2b4f2adaf..9d0e9e035 100644 --- a/src/pal/game/0033423C-sw.c +++ b/src/pal/game/0033423C-sw.c @@ -18,8 +18,8 @@ extern void CalculateAimedLaunchVelocity_pal(void *, void *, char *, float, floa extern int coll_trace_projectile_to_impact_pal(float *, float *, float *, float *, void *, void *, int *, float); extern void moby_set_entry_list_flag_byte(int, int); extern float IntToFloat(int); +extern void stub_empty_10(void); extern void stub_empty_11(void); -extern void stub_empty_12(void); extern char *part_spawn_flying_chunk_b_pal(int, void *, void *); extern char *part_spawn_flying_chunk_a_pal(int, void *, void *); extern int math_fast_float_d(void *); @@ -124,7 +124,7 @@ void thermanator_update_pal(Target *obj) break; case 2: if ((g_pad_pressed_flags & g_hero_state.input) && vars->hit && vars->valid && !vars->disabled) { - stub_empty_11(); + stub_empty_10(); obj->state = 3; if (!vars->reverse) { part_spawn_flying_chunk_b_pal((int)obj, vars->position, dir); @@ -141,7 +141,7 @@ void thermanator_update_pal(Target *obj) break; case 3: if (!(g_pad_pressed_flags & g_hero_state.input) || !vars->hit || !vars->valid || vars->disabled) { - stub_empty_12(); + stub_empty_11(); obj->state = 2; } else if (math_fast_float_d(&vars->countdown)) { qcopy(spread, dir); diff --git a/src/pal/game/00335118-g8.c b/src/pal/game/00335118-g8.c index d92f517ed..936931cba 100644 --- a/src/pal/game/00335118-g8.c +++ b/src/pal/game/00335118-g8.c @@ -27,7 +27,7 @@ extern int flag_is_third_pending_set(void *); extern void level_capture_checkpoint_state(void *, void *); extern void game_set_slowdown_factor_pal(void); extern int game_is_either_mode_two(void); -extern void stub_empty_15(void *, void *, int, int); +extern void stub_empty_14(void *, void *, int, int); extern unsigned int g_request_flag_table[]; typedef struct { @@ -134,7 +134,7 @@ void item_reward_trigger_update_pal(Thing *moby) if (game_is_either_mode_two() == 0) { if (vars->link != -1) { char *record = g_vec_record_table + (vars->link << 7); - stub_empty_15(record + 0x30, record + 0x70, 0, 1); + stub_empty_14(record + 0x30, record + 0x70, 0, 1); } moby_set_state(moby, 4, -1); } diff --git a/src/pal/game/0033A598-flags.c b/src/pal/game/0033A598-flags.c deleted file mode 100644 index 368226ab4..000000000 --- a/src/pal/game/0033A598-flags.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Empty stub (does nothing). */ -void ui_nop_c_pal(void) { -} diff --git a/src/pal/game/0033A9B0-flags.c b/src/pal/game/0033A9B0-flags.c deleted file mode 100644 index 16db982a3..000000000 --- a/src/pal/game/0033A9B0-flags.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Empty stub (does nothing). */ -void ui_nop_d_pal(void) { -} diff --git a/src/pal/game/00343638-flags.c b/src/pal/game/00343638-flags.c deleted file mode 100644 index 712f90083..000000000 --- a/src/pal/game/00343638-flags.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Does nothing (PAL). */ -void tab_menu_noop_pal(void) { -} diff --git a/src/pal/game/00350E98.c b/src/pal/game/00350E98.c index ab87c0aef..ec3bf94da 100644 --- a/src/pal/game/00350E98.c +++ b/src/pal/game/00350E98.c @@ -29,7 +29,7 @@ typedef struct { char *f58; char *f5c; } SlotObject; -extern void stub_empty_17(char *, long long); +extern void stub_empty_16(char *, long long); extern void func_PAL_002A0F68(char *); extern void func_002A1130(u32 *, u32, long long, u32); extern void func_002A0F48(char *); @@ -40,7 +40,7 @@ void menu_attach_slot_packets_pal(char *menu) char *slot_base = menu + 0xC00; SlotObject *slot = (SlotObject *)slot_base; - stub_empty_17(slot_base, 0); + stub_empty_16(slot_base, 0); func_PAL_002A0F68(slot_base); if (slot->f42 != 0xFF) { EntryTable *entry_table = slot->f24; diff --git a/src/us2/game/0026EDE8.c b/src/us2/game/0026EDE8.c deleted file mode 100644 index 99b3339a4..000000000 --- a/src/us2/game/0026EDE8.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* func_US2_0026EDE8 lives in 0026EDE8-loader.c. */ - -/* Does nothing and returns zero. */ -unsigned int stub_empty_2_us2(void) -{ - return 0; -} - diff --git a/src/us2/game/0026F730.c b/src/us2/game/0026F730.c deleted file mode 100644 index ad90dc9e8..000000000 --- a/src/us2/game/0026F730.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Does nothing. */ -void stub_empty_5_us2(void) -{ -} - diff --git a/src/us2/game/0026F750.c b/src/us2/game/0026F750.c deleted file mode 100644 index 30427b2f5..000000000 --- a/src/us2/game/0026F750.c +++ /dev/null @@ -1,9 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Does nothing and returns zero. */ -unsigned int stub_empty_9_us2(void) -{ - return 0; -} - diff --git a/src/us2/game/0026F7A0.c b/src/us2/game/0026F7A0.c deleted file mode 100644 index 0e9933bd9..000000000 --- a/src/us2/game/0026F7A0.c +++ /dev/null @@ -1,12 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Does nothing. */ -void stub_empty_19_us2(void) -{ -} - -void stub_empty_21_us2(void) -{ -} - diff --git a/src/us2/game/0026F7E0.c b/src/us2/game/0026F7E0.c new file mode 100644 index 000000000..2306422d0 --- /dev/null +++ b/src/us2/game/0026F7E0.c @@ -0,0 +1,8 @@ +#include "include_asm.h" +#include "names.h" + +/* Does nothing and returns zero: a level hook only this release has. */ +unsigned int stub_empty_us2(void) +{ + return 0; +} diff --git a/src/us2/game/0026F808-flags.c b/src/us2/game/0026F808-flags.c deleted file mode 100644 index d0ea04023..000000000 --- a/src/us2/game/0026F808-flags.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Does nothing. */ -void stub_empty_32_us2(void) { -} diff --git a/src/us2/game/0026F808.c b/src/us2/game/0026F808.c deleted file mode 100644 index 80bf17b0d..000000000 --- a/src/us2/game/0026F808.c +++ /dev/null @@ -1,17 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Does nothing and returns zero. */ -unsigned int stub_empty_31_us2(void) -{ - return 0; -} - - -/* Returns zero (the actuator power calculation is stubbed out). */ -unsigned int actuator_calc_power_us2(void) -{ - return 0; -} - - diff --git a/src/us2/game/00272378-qcopy.c b/src/us2/game/00272378-qcopy.c index f470d2c04..167973abc 100644 --- a/src/us2/game/00272378-qcopy.c +++ b/src/us2/game/00272378-qcopy.c @@ -10,7 +10,7 @@ extern void cam_select_coll_masks(void); extern void cam_update_follow_hero(void); extern int cam_update_active(void); extern void cam_begin_mode_change(void *); -extern int stub_empty_22(void); +extern int stub_empty_21(void); extern void FastVecCross(void *, void *, void *); extern void vec_scale_to_length(void *, void *, float); extern void mat_get_euler_angles(void *, void *); @@ -44,7 +44,7 @@ void cam_update_state_us2(void) { qcopy(cam + 0x380, target + 0x10); qcopy(cam + 0x390, target + 0x20); } - if (stub_empty_22()) { + if (stub_empty_21()) { p = g_active_camera + 0x140; qcopy(p, g_camera_state_block); qcopy(p + 0x230, g_camera_state_block + 0x10); diff --git a/src/us2/game/00287140-g8.c b/src/us2/game/00287140-g8.c index ddea336ab..26630cd2c 100644 --- a/src/us2/game/00287140-g8.c +++ b/src/us2/game/00287140-g8.c @@ -148,7 +148,7 @@ extern void lerp_vector(void *, const void *, const void *, float); extern void mat_build_rotation_from_angles(void *, float *); extern void vec_fast_normalize3(void *, const void *, const void *, float); extern void quaternion_to_rotation_basis(const void *, void *); -extern void stub_empty_21_us2(void); +extern void stub_empty_20(void); extern void hud_request_letterbox_bars(void); extern void menu_set_state_word_three(void); extern int hud_set_slot_contents(int, int, void (*)(unsigned char *), void (*)(), void (*)(), int, int); @@ -605,7 +605,7 @@ void UpdateModalState_us2(void) g_modal_state.cameraActive = 1; g_modal_state.phase = 1; if (g_screen_mode_flag != 1) - stub_empty_21_us2(); + stub_empty_20(); g_modal_clear_flag = 0; g_modal_counter = ref_00286738_00; hud_request_letterbox_bars(); @@ -613,7 +613,7 @@ void UpdateModalState_us2(void) break; case 1: if (g_screen_mode_flag != 1) { - stub_empty_21_us2(); + stub_empty_20(); hud_set_slot_contents(0x23, 0, menu_init_panel_layout, weapon_wheel_update_select, weapon_wheel_draw, 0, 0); } else { hud_set_slot_contents(0x23, 0, weapon_wheel_init, UpdateRadialMenuSelection, DrawRadialSelectorPanel, 0, 0); @@ -638,7 +638,7 @@ void UpdateModalState_us2(void) break; case 2: if (g_screen_mode_flag != 1) { - stub_empty_21_us2(); + stub_empty_20(); hud_set_slot_contents(0x23, 0, menu_init_panel_layout, weapon_wheel_update_select, weapon_wheel_draw, 0, 0); } else { hud_set_slot_contents(0x23, 0, weapon_wheel_init, UpdateRadialMenuSelection, DrawRadialSelectorPanel, 0, 0); @@ -662,7 +662,7 @@ void UpdateModalState_us2(void) break; case 3: if (g_screen_mode_flag != 1) - stub_empty_21_us2(); + stub_empty_20(); hud_clear_flag_b(); hud_clear_flag_a(); { request_end_slot(0, 0); break; } diff --git a/src/us2/game/0029C648-g82.c b/src/us2/game/0029C648-g82.c index 6fe32d380..d83bff3c7 100644 --- a/src/us2/game/0029C648-g82.c +++ b/src/us2/game/0029C648-g82.c @@ -6,13 +6,13 @@ extern int g_mission_select_enabled __attribute__((sda)); extern char g_mission_menu_field __attribute__((sda)); extern char g_mission_circle_menu __attribute__((sda)); extern char g_mission_menu_items[]; -extern int stub_empty_25(void), stub_empty_25(void); +extern int stub_empty_24(void), stub_empty_24(void); extern void mission_select_reset_us2(void), mission_menu_refresh_items_us2(void); extern void menu_set_field_144(void *, int); extern void circle_menu_init_entries_us2(void *,void *,void *); extern void circle_menu_set_radius_us2(void *,float); extern void circle_menu_set_selection_us2(void *,int); -extern int stub_empty_24(void), stub_empty_24(void); +extern int stub_empty_23(void), stub_empty_23(void); extern int ref_US2_0029C818_00(void), ref_US2_0029C818_00(void); extern int ref_US2_0029C818_01(void), ref_US2_0029C818_01(void); diff --git a/src/us2/game/002CBED0-g8.c b/src/us2/game/002CBED0-g8.c index c17ff6b20..ab94aa8e1 100644 --- a/src/us2/game/002CBED0-g8.c +++ b/src/us2/game/002CBED0-g8.c @@ -15,14 +15,14 @@ extern int g_pause_widget_icons_c[1] __attribute__((sda)); extern int g_pause_widget_icons_d[1] __attribute__((sda)); extern int g_pause_widget_data[]; extern unsigned char g_hero_state[]; -extern int stub_empty_23(void), stub_empty_24(void), stub_empty_25(void), stub_empty_27(void), stub_empty_28(void), stub_empty_29(void), stub_empty_30(void), menu_always_return_true(void); +extern int stub_empty_22(void), stub_empty_23(void), stub_empty_24(void), stub_empty_25(void), stub_empty_26(void), stub_empty_27(void), stub_empty_28(void), menu_always_return_true(void); extern void func_US2_003492A8(char *, int), func_US2_003492B0(char *, int), menu_load_sprites_from_values(char *, int *), func_US2_00349368(char *, int, int), menu_page_set_labels_us2(char *, int, int *); extern int menu_choice_list_update_widgets_us2(char *, int); /* Sets up the choices shown in the menu list, depending on what the game is doing (USA v2.00). */ void ConfigureMenuChoiceList_us2(void) { if (!g_resident_data_base[0]) return; - if (stub_empty_28()) { + if (stub_empty_26()) { func_US2_003492B0((g_resident_data_base[0] + 0x39160), 1); menu_page_set_labels_us2((g_resident_data_base[0] + 0x39160), 5, g_pause_icons_five_a); menu_load_sprites_from_values((g_resident_data_base[0] + 0x39160), g_pause_sprite_values); @@ -36,7 +36,7 @@ void ConfigureMenuChoiceList_us2(void) func_US2_00349368((g_resident_data_base[0] + 0x39160), 1, 1); func_US2_00349368((g_resident_data_base[0] + 0x39160), 4, 1); { char *menu = (g_resident_data_base[0] + 0x39160); *(int *)(menu + 0x4AC) = 0; } - } else if (stub_empty_24() && stub_empty_25()) { + } else if (stub_empty_23() && stub_empty_24()) { func_US2_003492B0((g_resident_data_base[0] + 0x39160), 1); menu_page_set_labels_us2((g_resident_data_base[0] + 0x39160), 5, g_pause_icons_five_b); menu_load_sprites_from_values((g_resident_data_base[0] + 0x39160), g_pause_sprite_values); @@ -44,13 +44,13 @@ void ConfigureMenuChoiceList_us2(void) *(int **)(menu + 0x484) = g_pause_widget_icons_c; func_US2_00349368(menu, 0, 1); } - func_US2_00349368((g_resident_data_base[0] + 0x39160), 1, stub_empty_23() ^ 1); - func_US2_00349368((g_resident_data_base[0] + 0x39160), 2, stub_empty_23() ^ 1); + func_US2_00349368((g_resident_data_base[0] + 0x39160), 1, stub_empty_22() ^ 1); + func_US2_00349368((g_resident_data_base[0] + 0x39160), 2, stub_empty_22() ^ 1); func_US2_00349368((g_resident_data_base[0] + 0x39160), 3, 1); - func_US2_00349368((g_resident_data_base[0] + 0x39160), 4, stub_empty_23() ^ 1); + func_US2_00349368((g_resident_data_base[0] + 0x39160), 4, stub_empty_22() ^ 1); func_US2_003492A8((g_resident_data_base[0] + 0x39160), 0); { char *menu = (g_resident_data_base[0] + 0x39160); *(int *)(menu + 0x4AC) = 0; } - } else if (stub_empty_27()) { + } else if (stub_empty_25()) { func_US2_003492B0((g_resident_data_base[0] + 0x39160), 1); menu_page_set_labels_us2((g_resident_data_base[0] + 0x39160), 3, g_pause_icons_three); menu_load_sprites_from_values((g_resident_data_base[0] + 0x39160), g_pause_sprite_values); @@ -62,7 +62,7 @@ void ConfigureMenuChoiceList_us2(void) func_US2_00349368((g_resident_data_base[0] + 0x39160), 1, 1); func_US2_00349368((g_resident_data_base[0] + 0x39160), 2, 1); { char *menu = (g_resident_data_base[0] + 0x39160); *(int *)(menu + 0x4AC) = 0; } - } else if (stub_empty_30() == 0x31 || stub_empty_29() || stub_empty_30() == 0x1C) { + } else if (stub_empty_28() == 0x31 || stub_empty_27() || stub_empty_28() == 0x1C) { func_US2_003492B0((g_resident_data_base[0] + 0x39160), 1); menu_page_set_labels_us2((g_resident_data_base[0] + 0x39160), 2, g_pause_icons_two); menu_load_sprites_from_values((g_resident_data_base[0] + 0x39160), g_pause_sprite_values); diff --git a/src/us2/game/002CE0C8.c b/src/us2/game/002CE0C8.c index 62ad5b07f..279fcff63 100644 --- a/src/us2/game/002CE0C8.c +++ b/src/us2/game/002CE0C8.c @@ -3,21 +3,21 @@ #include "common.h" extern int g_menu_input_flags; extern int resident_menu_update_us2(int); -extern unsigned int stub_empty_29(void); -extern unsigned int stub_empty_29(void); -extern unsigned int stub_empty_29(void); -extern unsigned int stub_empty_30(void); -extern unsigned int stub_empty_29(void); -extern unsigned int stub_empty_30(void); +extern unsigned int stub_empty_27(void); +extern unsigned int stub_empty_27(void); +extern unsigned int stub_empty_27(void); +extern unsigned int stub_empty_28(void); +extern unsigned int stub_empty_27(void); +extern unsigned int stub_empty_28(void); extern int menu_handle_step_simple(int); extern int menu_handle_mode_action(int); extern int menu_run_action_by_index(int); extern int menu_handle_command_us2(int); extern int snd_play_from_global_bank(int, unsigned int, void *); +extern unsigned int stub_empty_23(void); extern unsigned int stub_empty_24(void); +extern unsigned int stub_empty_26(void); extern unsigned int stub_empty_25(void); -extern unsigned int stub_empty_28(void); -extern unsigned int stub_empty_27(void); /* Handles menu button input and picks the right handler for the current screen. Plays a sound if input was used. */ int menu_handle_button_input_us2(void) @@ -29,17 +29,17 @@ int menu_handle_button_input_us2(void) result = 1; } else if (flags & 0x40) { result = resident_menu_update_us2(flags); - if (stub_empty_24() && stub_empty_25()) { + if (stub_empty_23() && stub_empty_24()) { result = menu_handle_command_us2(result); - } else if (stub_empty_28()) { + } else if (stub_empty_26()) { result = menu_handle_mode_action(result); - } else if (stub_empty_27()) { + } else if (stub_empty_25()) { result = menu_handle_step_with_reset(result); - } else if (stub_empty_30() == 0x31) { + } else if (stub_empty_28() == 0x31) { result = menu_handle_step_simple(result); - } else if (stub_empty_29()) { + } else if (stub_empty_27()) { result = menu_handle_step_simple(result); - } else if (stub_empty_30() == 0x1C) { + } else if (stub_empty_28() == 0x1C) { result = menu_handle_step_simple(result); } else { result = menu_run_action_by_index(result); diff --git a/src/us2/game/002D65D8.c b/src/us2/game/002D65D8.c index b6b2ebb5f..90990d5f4 100644 --- a/src/us2/game/002D65D8.c +++ b/src/us2/game/002D65D8.c @@ -10,12 +10,12 @@ extern int g_map_overlay_state[]; extern void FadeToBlack(int); extern void menu_set_pause_scale_inverse(float); extern int snd_play_from_global_bank(int, unsigned int, void *); -extern int stub_empty_25(void); -extern int stub_empty_25(void); +extern int stub_empty_24(void); +extern int stub_empty_24(void); extern void data_set_small_value_and_refresh(int, int); extern int request_begin_slot(int, int, int, int, int); extern int info_panel_update_call_us2(int); -extern int stub_empty_24(void); +extern int stub_empty_23(void); extern int ref_US2_002D65D8_00(void); extern int ref_US2_002D65D8_01(void); diff --git a/src/us2/game/002E7BE0-g8.c b/src/us2/game/002E7BE0-g8.c index d0097e440..fedac05a0 100644 --- a/src/us2/game/002E7BE0-g8.c +++ b/src/us2/game/002E7BE0-g8.c @@ -61,8 +61,8 @@ extern int g_screen_flash_alpha __attribute__((sda)); extern TransitionMoby *g_moby_pool_end; extern void mem_clear(void *, int, int); extern void gfx_select_packet_buffer_setup(void); -extern unsigned int stub_empty_9_us2(int, int); -extern void stub_empty_4(void); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_3(void); extern void load_parts_set_from_disc(int, int); extern void load_select_segment_update_world(int); extern int UpdateSoundVoices(void); @@ -96,9 +96,9 @@ void level_transition_scene_start_us2(int mode) g_screen_fade = 1.0f; g_packet_buffer_size = offset; g_screen_flash_alpha = 0; - stub_empty_9_us2(0x61, 2); + stub_empty_8(0x61, 2); g_hero_state.flag = 1; - stub_empty_4(); + stub_empty_3(); object = g_hero_moby_default.object; p = g_moby_pool_end; diff --git a/src/us2/game/002E7BE0-qcopy.c b/src/us2/game/002E7BE0-qcopy.c index 601354f41..49945ebb5 100644 --- a/src/us2/game/002E7BE0-qcopy.c +++ b/src/us2/game/002E7BE0-qcopy.c @@ -5,10 +5,10 @@ typedef int TI128 __attribute__((mode(TI))); extern char g_hero_state[]; extern char g_hero_moby_default[]; extern void music_Unpause(void); -extern void stub_empty_5_us2(void); -extern void stub_empty_10(int); -extern void stub_empty_19_us2(void); -extern void stub_empty_15(char *, void *, int, int); +extern void stub_empty_4(void); +extern void stub_empty_9(int); +extern void stub_empty_18(void); +extern void stub_empty_14(char *, void *, int, int); extern void cam_set_transition_frames(float); extern void pad_clear_port_state(void); extern float FastAddRotations(float, float); @@ -22,13 +22,13 @@ void scene_end_playback_us2(void) { music_Unpause(); p = g_hero_state; p[0x22B5] = 0; - stub_empty_5_us2(); + stub_empty_4(); scene = g_hero_moby_default; if (*(short *)(scene + 0x2A) != 0) { - stub_empty_10(1); + stub_empty_9(1); p[0x22B5] = 0; - stub_empty_5_us2(); - stub_empty_19_us2(); + stub_empty_4(); + stub_empty_18(); cam_set_transition_frames(8.0f); pad_clear_port_state(); } else { @@ -36,8 +36,8 @@ void scene_end_playback_us2(void) { *(TI128 *)v = *(TI128 *)p; v[2] = FastAddRotations(v[2], -2.3f); scene += 0x70; - stub_empty_15(scene, v, 0, 1); - stub_empty_15(scene, p, 0, 0); + stub_empty_14(scene, v, 0, 1); + stub_empty_14(scene, p, 0, 0); cam_set_transition_frames(8.0f); pad_clear_port_state(); } diff --git a/src/us2/game/002EA0C0-flags.c b/src/us2/game/002EA0C0-flags.c index be5eb06a7..e5cf53834 100644 --- a/src/us2/game/002EA0C0-flags.c +++ b/src/us2/game/002EA0C0-flags.c @@ -123,7 +123,7 @@ extern short g_hud_offset_flag; extern float g_hero_attach_offset[] SDATA(D_001AC1B0); extern float g_companion_attach_offset[] SDATA(D_001AC1C0); extern void game_reset_frame_counters(void), moby_update_visible_objects(void), snd_run_callbacks(void); -extern void stub_empty_3(void), part_update_all(void), gfx_select_packet_buffer_setup(void); +extern void stub_empty_2(void), part_update_all(void), gfx_select_packet_buffer_setup(void); extern void load_select_segment_update_world(int), FadeToBlack(int), UpdateViewContext(void); extern void moby_mark_spawned(void *), update_moby_animation_state(void *), func_002A0F48(void *); extern int request_begin_slot(int,int,int,int,int); @@ -135,7 +135,7 @@ extern float FastAddRotations(float,float), IntToFloat(int), fast_subtract_rotat extern void func_00129178(void *), pad_vib_routine_f(void *,void *,float); extern void pad_vib_routine_g(void *,void *,float), pad_vib_routine_e(void *,void *,float); extern void FastVecScale(void *,void *,float), moby_run_ground_check(void *); -extern void stub_empty_18(void *), stub_empty_17(void *,int), UpdateEquipmentPieces_us2(void *); +extern void stub_empty_17(void *), stub_empty_16(void *,int), UpdateEquipmentPieces_us2(void *); extern void gfx_register_overlay_draw_callback(void *,void *), gfx_register_world_draw_callback(void *,void *); extern void render_environment_mapped_object(void), gfx_draw_ground_shadow(void), part_draw_glow_quads(void); extern float math_fast_sin_or_cos_a(float); @@ -161,7 +161,7 @@ extern void gfx_compute_light_direction(void), game_update_idle_frame_counters(v extern int transition_update_scene_us2(void); extern void ref_US2_002EA0C0_00(void), part_update_all(void), gfx_select_packet_buffer_setup(void); -extern void ref_US2_002EA0C0_01(void *), stub_empty_17(void *,int), UpdateEquipmentPieces_us2(void *); +extern void ref_US2_002EA0C0_01(void *), stub_empty_16(void *,int), UpdateEquipmentPieces_us2(void *); /* Runs one frame of a story cutscene: moves the camera and every actor along their paths, handles skipping and fades, and ends the scene (USA v2.00). */ int UpdatePlaybackScene_us2(void) @@ -332,7 +332,7 @@ int UpdatePlaybackScene_us2(void) } if (object->shadow_radius) moby_run_ground_check(object); if (object->class_id==10) ref_US2_002EA0C0_01(object); - if (object->class_id==0) stub_empty_17(object,0); + if (object->class_id==0) stub_empty_16(object,0); if (object->class_id==0xD54) { PlaybackMoby *p; int j, cast; diff --git a/src/us2/game/002EC038-flags.c b/src/us2/game/002EC038-flags.c index 83123a2a6..a57c18126 100644 --- a/src/us2/game/002EC038-flags.c +++ b/src/us2/game/002EC038-flags.c @@ -82,7 +82,7 @@ extern void UpdateEquipmentPieces_us2(void *); extern void render_environment_mapped_object(void); extern void gfx_register_overlay_draw_callback(void *, void *); extern void func_002A0F48(void *); -extern void stub_empty_17(void *, int); +extern void stub_empty_16(void *, int); extern s32 UpdateSoundVoices(void); extern void UpdateLightingEnvironment(void); extern void game_update_idle_frame_counters(void); @@ -165,7 +165,7 @@ int cutscene_update_scripted_actors_us2(void) func_002A0F48(actor); if (actor->type == 0) { D_00189E20_9.focus = actor; - stub_empty_17(actor, 1); + stub_empty_16(actor, 1); } } } diff --git a/src/us2/game/002F6220-g8.c b/src/us2/game/002F6220-g8.c index cd59ffab0..e4f2d2efd 100644 --- a/src/us2/game/002F6220-g8.c +++ b/src/us2/game/002F6220-g8.c @@ -63,8 +63,8 @@ extern void music_Pause(int); extern s16 snd_pump_music_and_disc_read(int); extern void mem_clear(void *, int, int); extern void subtitle_clear_state(void); -extern unsigned int stub_empty_9_us2(int, int); -extern void stub_empty_4(void); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_3(void); extern int load_chunk_part_from_disc(int); extern void load_relocate_world_object_parts(void); extern void gfx_empty_stub(void); @@ -119,9 +119,9 @@ void cutscene_start_us2(int n) g_screen_flash_alpha = 0; g_mode_fade_scale = 0; if (g_hero_state.active) { - stub_empty_9_us2(0x61, 2); + stub_empty_8(0x61, 2); g_hero_state.flag = 1; - stub_empty_4(); + stub_empty_3(); } if (g_dialogue_talk_state.moby) *(unsigned short *)(g_dialogue_talk_state.moby + 0x34) |= 1; @@ -171,11 +171,11 @@ extern void cam_set_transition_frames(float); extern void game_reset_frame_counters(void); extern void UpdateViewContext(void); extern void moby_mark_spawned(void *); -extern void stub_empty_10(int); +extern void stub_empty_9(int); extern float coll_probe_ground_height_below(void *, int, float); extern float math_fabs(float); -extern void stub_empty_5_us2(void); -extern void stub_empty_15(void *, void *, int, int); +extern void stub_empty_4(void); +extern void stub_empty_14(void *, void *, int, int); extern void cutscene_run_dialogue_node(void *, void *, int); extern void music_set_active_track_value(int); extern void hero_destroy_equipment_pieces(void); @@ -217,20 +217,20 @@ void cutscene_end_us2(void) } p = &g_hero_state; if (p->active) { - stub_empty_10(1); + stub_empty_9(1); g = coll_probe_ground_height_below(p->pos, 0, 0.5f); if (2.0f < g) { if (math_fabs(p->pos[2] - g) < 4.5f) p->pos[2] = g; } g_hero_state.flag = 0; - stub_empty_5_us2(); + stub_empty_4(); b = &g_scene_playback_state; if (b->restore) { f = coll_probe_ground_height_below(b->pos, 0, 0.5f); if (2.0f < f && math_fabs(b->pos[2] - f) < 2.0f) b->pos[2] = f; - stub_empty_15(g_scene_playback_state.pos, g_scene_playback_state.rot, 0, 1); + stub_empty_14(g_scene_playback_state.pos, g_scene_playback_state.rot, 0, 1); } } if (g_dialogue_talk_state.moby) diff --git a/src/us2/game/002F8FF8-open-g8.c b/src/us2/game/002F8FF8-open-g8.c index 117c11466..e2cd6c344 100644 --- a/src/us2/game/002F8FF8-open-g8.c +++ b/src/us2/game/002F8FF8-open-g8.c @@ -84,7 +84,7 @@ extern void level_forward_value(int); extern void level_forward_pair(int, int); extern int PlayMobySound(int, int, void *); extern void subtitle_clear_state(void); -extern unsigned int stub_empty_9_us2(int, int); +extern unsigned int stub_empty_8(int, int); extern void ref_US2_002F8FF8_00(void); extern void matrix_mul_vec3(void *, void *, void *); extern float FastAddRotations(float, float); @@ -211,7 +211,7 @@ void OpenVendorMenu_us2(char *moby) g_current_game_mode = 5; g_screen_fade = 0.0f; g_screen_flash_alpha = 0; - stub_empty_9_us2(97, 1); + stub_empty_8(97, 1); g_hero_state.flag22BC = 1; g_hero_state.flag22B5 = 1; ref_US2_002F8FF8_00(); diff --git a/src/us2/game/002F95E8-g16.c b/src/us2/game/002F95E8-g16.c index cbe92cc40..15c121a9b 100644 --- a/src/us2/game/002F95E8-g16.c +++ b/src/us2/game/002F95E8-g16.c @@ -16,10 +16,10 @@ extern int g_current_game_mode __attribute__((sda)); extern Vec4_2F8768 g_shop_camera_vec __attribute__((sda)); extern void set_animation_parameter(int, int); extern void hud_tick_countdown(void); -extern unsigned int stub_empty_9_us2(int, int); -extern void stub_empty_5_us2(void); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_4(void); extern int func_US2_00299980(void); -extern void stub_empty_15(char *, void *, int, int); +extern void stub_empty_14(char *, void *, int, int); extern void matrix_mul_vec3(void *, void *, void *); extern void FastVecAdd(void *, void *, void *); extern float FastAddRotations(float, float); @@ -45,9 +45,9 @@ void shop_reset_menu_camera_us2(void) g_vendor_menu_state.f78 = -1; hud_tick_countdown(); g_current_game_mode = 0; - stub_empty_9_us2(0, 1); + stub_empty_8(0, 1); g_hero_state[0x22B5] = 0; - stub_empty_5_us2(); + stub_empty_4(); if (g_vendor_menu_state.f60 == 0) { flag = func_US2_00299980(); qcopy(&in, &g_shop_camera_vec); @@ -56,7 +56,7 @@ void shop_reset_menu_camera_us2(void) dir[0] = 0; dir[1] = 0; dir[2] = FastAddRotations(*(float *)(g_vendor_menu_state.obj + 0xF8), 3.1415927f); - stub_empty_15((char *)&out, dir, 0, flag); + stub_empty_14((char *)&out, dir, 0, flag); cam_set_mode_state(2); } g_vendor_menu_state.obj[0x20] = 1; diff --git a/src/us2/game/002F97A8-sw.c b/src/us2/game/002F97A8-sw.c index fade12225..e17249303 100644 --- a/src/us2/game/002F97A8-sw.c +++ b/src/us2/game/002F97A8-sw.c @@ -23,7 +23,7 @@ extern volatile PurchaseInput g_pad_state; extern int GetSelectedShopItemPrice(void); extern void shop_build_vendor_weapon_list(int); extern int PlayMobySound(int, int, void *); -extern int stub_empty_8(int, int); +extern int stub_empty_7(int, int); extern char *GetLocalizedString(int); extern void shop_set_message_text(int); extern void help_unlock_entry(int); diff --git a/src/us2/game/002F97A8-sw2.c b/src/us2/game/002F97A8-sw2.c index 2ddf6fbf4..aa2c42853 100644 --- a/src/us2/game/002F97A8-sw2.c +++ b/src/us2/game/002F97A8-sw2.c @@ -23,7 +23,7 @@ extern volatile PurchaseInput g_pad_state; extern int GetSelectedShopItemPrice(void); extern void shop_build_vendor_weapon_list(int); extern int PlayMobySound(int, int, void *); -extern int stub_empty_8(int, int); +extern int stub_empty_7(int, int); extern char *GetLocalizedString(int); extern void shop_set_message_text(int); extern void help_unlock_entry(int); diff --git a/src/us2/game/002FEDD0-g8.c b/src/us2/game/002FEDD0-g8.c index 7205ed84b..17528fdd6 100644 --- a/src/us2/game/002FEDD0-g8.c +++ b/src/us2/game/002FEDD0-g8.c @@ -12,7 +12,7 @@ extern float g_camera_eye_state[]; #define CAMERA_BASIS (&D_001B5340[0x230 / 4]) extern void FastVecScale(void *,void *,float); extern void cam_compute_view_direction(char *,char *,int); -extern unsigned int stub_empty_9_us2(int,int); +extern unsigned int stub_empty_8(int,int); extern void vec_scale_to_length(void *,void *,float); extern float FastVecDot(void *,void *); extern void FastVecSub(void *,void *,void *); @@ -58,7 +58,7 @@ void CalculateAimedLaunchVelocity_us2(Vector *output, Vector *origin, char *targ else cam_compute_view_direction((char *)&source_position,(char *)&normal,0); reach=maximum; if(!target_object) { - if(H->i[0x2294/4]==1) stub_empty_9_us2(29,1); + if(H->i[0x2294/4]==1) stub_empty_8(29,1); if((g_pad_pressed_flags&4)!=0 && H->b[0x22bc]==0) { vec_scale_to_length(&forward,CAMERA_BASIS,1.0f); projection=FastVecDot(&forward,&normal); diff --git a/src/us2/game/0030A098-sw.c b/src/us2/game/0030A098-sw.c index 3be8dd803..236d77a7e 100644 --- a/src/us2/game/0030A098-sw.c +++ b/src/us2/game/0030A098-sw.c @@ -47,7 +47,7 @@ typedef struct { } O_4198; extern G_4198 g_hero_state; extern s32 g_pad_pressed_flags; -extern s32 stub_empty_31_us2(s32), math_fast_float_d(void *); +extern s32 stub_empty_29(s32), math_fast_float_d(void *); extern void moby_mark_spawned(void *), gfx_register_overlay_draw_callback(void *, void *); extern void draw_joint_aligned_beam_effect(void), beam_spawn_trail_particles(void *); @@ -58,7 +58,7 @@ void beam_effect_update_us2(void *object) { s32 flag = 0; s32 hero_move_state; - if ((&g_hero_state)->i1338 == 3 || stub_empty_31_us2(3) == 8) { + if ((&g_hero_state)->i1338 == 3 || stub_empty_29(3) == 8) { if (moby->state == 1 || moby->state == 3) { hero_move_state = (&g_hero_state)->i2294; if ((u32)(hero_move_state - 0xB) < 4 @@ -90,7 +90,7 @@ void beam_effect_update_us2(void *object) { moby->u34 |= 1; break; case 1: - if ((stub_empty_31_us2(3) != 3 && stub_empty_31_us2(3) != 8) || !g_hero_state.i1314) { + if ((stub_empty_29(3) != 3 && stub_empty_29(3) != 8) || !g_hero_state.i1314) { moby_mark_spawned(moby); } else if (flag != 0) { moby->state = 2; diff --git a/src/us2/game/0030A098-sw2.c b/src/us2/game/0030A098-sw2.c index 0fc310769..791a419c2 100644 --- a/src/us2/game/0030A098-sw2.c +++ b/src/us2/game/0030A098-sw2.c @@ -27,8 +27,8 @@ extern Light g_dynamic_lights[]; extern int g_tether_reset_flag __attribute__((sda)), g_tether_timer __attribute__((sda)); extern u32 g_frame_counter, g_current_map_index; extern Statistics g_statistics_table[], g_progress_statistics[]; -extern int stub_empty_7(int); -extern int stub_empty_6(int, int); +extern int stub_empty_6(int); +extern int stub_empty_5(int, int); extern int math_fast_float_d(int *), FastDecTimer(short *); extern void hud_add_moby_marker(void *, u32, void *, int, int, int, float, float, float); extern s16 gfx_add_point_light(void *, int, float, float); @@ -40,8 +40,8 @@ extern void matrix_mul_vec3(void *, void *, void *), vec_scale_to_length(void *, extern void moby_transform_joint_to_world(void *, int, void *); extern void InitializeElectricWaterBoltEffect(char *), lock_on_update_tether_chain(char *), beam_draw_ribbons(void *); extern void gfx_register_overlay_draw_callback(void (*)(void *), void *), snd_stop_voice(int); -extern void stub_empty_12(void), stub_empty_12(void), gfx_free_point_light(int); extern void stub_empty_11(void), stub_empty_11(void), gfx_free_point_light(int); +extern void stub_empty_10(void), stub_empty_10(void), gfx_free_point_light(int); /* Maintains two beam targets, their acquisition delays, ammunition and the light/sound state. */ void tesla_claw_update_us2(char *moby) { @@ -59,10 +59,10 @@ void tesla_claw_update_us2(char *moby) { g_beam_scale_factor = 0.9f; active = 0; permitted = 1; - ammo_count = stub_empty_7(-1); + ammo_count = stub_empty_6(-1); if (g_hero_state.i[0x2294 / 4] == 1) { if (!math_fast_float_d(&g_hero_state.i[0x2534 / 4])) permitted = 0; - else hud_add_moby_marker(moby, !stub_empty_7(-1) ? 0x600000FF : 0x600FFF0F, 0, 31, -1, 4, 1, 0, 90); + else hud_add_moby_marker(moby, !stub_empty_6(-1) ? 0x600000FF : 0x600FFF0F, 0, 31, -1, 4, 1, 0, 90); } else g_hero_state.i[0x2534 / 4] = 40; if ((g_pad_state[0x1A0 / 4] & g_hero_state.u[0x1230 / 4]) && (u8)moby[0x20] != 4 && (u8)moby[0x20] && !g_hero_state.b[0x22BC] && g_hero_state.i[0x2294 / 4] != 0x6F && g_hero_state.i[0x1240 / 4] >= 23 && permitted) { @@ -71,7 +71,7 @@ void tesla_claw_update_us2(char *moby) { if (FastDecTimer(&beam->ammoTimer)) { FastDecTimer(&beam->targetTimer); FastDecTimer(&beam->secondaryTimer); - stub_empty_6(-1, 1); + stub_empty_5(-1, 1); beam->ammoTimer = 10; } if (beam->light == -1) beam->light = gfx_add_point_light(moby + 0x10, 0, 7.5f, 0); @@ -187,7 +187,7 @@ void tesla_claw_update_us2(char *moby) { case 1: math_fast_float_d(&beam->timer); if (active) { - stub_empty_11(); + stub_empty_10(); moby[0x20] = 3; } if ((g_pad_state[0x1A4 / 4] & g_hero_state.u[0x1230 / 4]) && !g_hero_state.b[0x22BC]) { @@ -195,7 +195,7 @@ void tesla_claw_update_us2(char *moby) { if (g_statistics_table[18].count < 0xFFFF) g_statistics_table[18].count++; if (g_frame_counter > g_statistics_table[18].maximum) g_statistics_table[18].maximum = g_frame_counter; g_statistics_table[18].levels = (g_statistics_table[18].levels | (1u << g_current_map_index)) | 0x80000000u; - stub_empty_11(); + stub_empty_10(); moby[0x20] = 3; } else { beam->target = 0; @@ -204,7 +204,7 @@ void tesla_claw_update_us2(char *moby) { beam->secondaryReady = 0; moby[0x20] = 1; PlayMobySound(0, 0, moby); - stub_empty_12(); + stub_empty_11(); } } break; @@ -222,7 +222,7 @@ void tesla_claw_update_us2(char *moby) { beam->targetReady = 0; beam->secondaryReady = 0; beam->length = 0; - stub_empty_12(); + stub_empty_11(); moby[0x20] = 1; break; case 2: diff --git a/src/us2/game/0030D238-sw.c b/src/us2/game/0030D238-sw.c index a5823a947..15dd3254f 100644 --- a/src/us2/game/0030D238-sw.c +++ b/src/us2/game/0030D238-sw.c @@ -24,18 +24,18 @@ extern int g_beam_reset_flag __attribute__((sda)); extern int gfx_add_point_light(void *, int, float, float); extern int math_fast_float_d(void *); extern void beam_draw_ribbons_level(void *); -extern void stub_empty_12(void); +extern void stub_empty_11(void); extern void SpawnEffectBurst(void *, int); extern void gfx_free_point_light(int), matrix_mul_vec3(void *, void *, void *); extern void vec_scale_to_length(void *, void *, float); extern void moby_transform_joint_to_world(void *, int, void *); extern void FastVecAdd(void *, void *, void *), InitializeBoltPointChain(void *), beam_update_chain_points(void *); -extern void stub_empty_12(void); +extern void stub_empty_11(void); extern void gfx_register_overlay_draw_callback(void *, void *); extern void snd_stop_voice(int); extern int PlayMobySound(int, int, void *); extern float IntToFloat(int); -extern void stub_empty_11(void); +extern void stub_empty_10(void); /* Maintains the beam's endpoint, light fade and looping sound state. */ void beam_actor_update_us2(u8 *moby) { @@ -102,11 +102,11 @@ void beam_actor_update_us2(u8 *moby) { snd_stop_voice(beam->sound); } beam->sound = -1; - if (active) { stub_empty_11(); moby[0x20] = 3; } + if (active) { stub_empty_10(); moby[0x20] = 3; } if ((((Pad *)g_pad_state)->u[0x1A4 / 4] & ((Hero *)g_hero_state)->u[0x1230 / 4]) && !((Hero *)g_hero_state)->b[0x22BC]) { SpawnEffectBurst(moby, 20); - if (active) { stub_empty_11(); moby[0x20] = 3; } - else { PlayMobySound(2, 0, moby); beam->target = 0; moby[0x20] = 1; stub_empty_12(); } + if (active) { stub_empty_10(); moby[0x20] = 3; } + else { PlayMobySound(2, 0, moby); beam->target = 0; moby[0x20] = 1; stub_empty_11(); } } break; case 3: @@ -116,7 +116,7 @@ void beam_actor_update_us2(u8 *moby) { } if ((((Pad *)g_pad_state)->u[0x1A8 / 4] & ((Hero *)g_hero_state)->u[0x1230 / 4]) || !active || ((Hero *)g_hero_state)->b[0x22BC]) { beam->target = 0; beam->length = 0; - stub_empty_12(); moby[0x20] = 1; + stub_empty_11(); moby[0x20] = 1; } break; case 2: case 4: case 5: default: break; diff --git a/src/us2/game/0030FAC0-sw.c b/src/us2/game/0030FAC0-sw.c index d27b0ae24..6d44667ba 100644 --- a/src/us2/game/0030FAC0-sw.c +++ b/src/us2/game/0030FAC0-sw.c @@ -22,7 +22,7 @@ extern s32 g_game_time[] __attribute__((sda)); extern s32 g_ammo_pickup_time[] __attribute__((sda)); extern s32 D_001B24A8_gp SDATA(D_001B24A8); extern s32 math_fast_float_d(s32 *); -extern u32 stub_empty_8(s32, s32); +extern u32 stub_empty_7(s32, s32); extern s32 snd_play_from_class_bank(s32, s32, void *, s32); extern f32 ApproachValue(f32 *, f32, f32); extern void FastVecAdd(void *, void *, void *); diff --git a/src/us2/game/0030FAC0-sw2.c b/src/us2/game/0030FAC0-sw2.c index a0ac1379b..39000e2ab 100644 --- a/src/us2/game/0030FAC0-sw2.c +++ b/src/us2/game/0030FAC0-sw2.c @@ -22,7 +22,7 @@ extern s32 g_game_time[] __attribute__((sda)); extern s32 g_ammo_pickup_time[] __attribute__((sda)); extern s32 D_001B24A8_gp SDATA(D_001B24A8); extern s32 math_fast_float_d(s32 *); -extern u32 stub_empty_8(s32, s32); +extern u32 stub_empty_7(s32, s32); extern s32 snd_play_from_class_bank(s32, s32, void *, s32); extern f32 ApproachValue(f32 *, f32, f32); extern void FastVecAdd(void *, void *, void *); diff --git a/src/us2/game/003105A8-sw.c b/src/us2/game/003105A8-sw.c index d082e2d32..52f5eb0d0 100644 --- a/src/us2/game/003105A8-sw.c +++ b/src/us2/game/003105A8-sw.c @@ -12,9 +12,9 @@ typedef struct { } FollowVars; extern char g_hero_state[]; extern u32 g_pad_pressed_flags; -extern unsigned int stub_empty_2_us2(int); -extern unsigned int stub_empty_9_us2(int, int); -extern void stub_empty_13(int, int, float); +extern unsigned int stub_empty(int); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_12(int, int, float); extern void hud_add_moby_marker(void *, float, u32, void *, int, float, int, float, int); extern int CollLine(void *, void *, int, void *, void *); extern void gfx_register_world_draw_callback(void (*)(char *), char *); @@ -39,7 +39,7 @@ void swingshot_update_us2(u8 *moby) f32 vec_b[4]; if (((Hero *)g_hero_state)->i[0x2294 / 4] == 1) - stub_empty_9_us2(0x1D, 1); + stub_empty_8(0x1D, 1); follow = *(FollowVars **)(moby + 0x68); if (follow == 0) return; @@ -130,10 +130,10 @@ void swingshot_update_us2(u8 *moby) vec_b[2] += 0.5f; if (CollLine(vec_b, ((Hero *)g_hero_state)->ptr[0xAA4 / 4] + 0x10, 2, 0, 0) != 0) { if (((Hero *)g_hero_state)->f[0x31C / 4] > 0.5f) { - stub_empty_9_us2(6, 1); + stub_empty_8(6, 1); } else { - stub_empty_9_us2(0, 0); - stub_empty_13(stub_empty_2_us2(0), 0, 14.0f); + stub_empty_8(0, 0); + stub_empty_12(stub_empty(0), 0, 14.0f); } moby[0x20] = 6; } else if (dist < fast_vec_dist(follow->target + 0x10, ((Hero *)g_hero_state)->ptr[0xAA4 / 4] + 0x10)) { @@ -156,9 +156,9 @@ void swingshot_update_us2(u8 *moby) vec_a[2] += 0.5f; if (CollLine(vec_a, ((Hero *)g_hero_state)->ptr[0xAA4 / 4] + 0x10, 2, 0, 0) != 0) { if (((Hero *)g_hero_state)->h[0x34E / 2] != 0) { - stub_empty_9_us2(6, 1); + stub_empty_8(6, 1); } else { - stub_empty_9_us2(0, 1); + stub_empty_8(0, 1); } moby[0x20] = 6; } else { @@ -172,20 +172,20 @@ void swingshot_update_us2(u8 *moby) if (follow->target != 0 && fast_vec_dist(follow->target + 0x10, &((Hero *)g_hero_state)->q[0x80 / 16]) > 3.5f) { if ((g_pad_pressed_flags & ((Hero *)g_hero_state)->u[0x1230 / 4]) == 0) { ((Hero *)g_hero_state)->i[0xAC8 / 4] = 1; - stub_empty_9_us2(0, 0); - stub_empty_13(stub_empty_2_us2(0), 0, 14.0f); + stub_empty_8(0, 0); + stub_empty_12(stub_empty(0), 0, 14.0f); moby[0x20] = 6; } else { PlayMobySound(2, 0, (char *)moby); if (((Hero *)g_hero_state)->i[0xAB8 / 4] != 0) { - stub_empty_9_us2(0x25, 1); + stub_empty_8(0x25, 1); } else { - stub_empty_9_us2(0x24, 1); + stub_empty_8(0x24, 1); } moby[0x20] = 5; } } else { - stub_empty_9_us2(0, 1); + stub_empty_8(0, 1); moby[0x20] = 6; } } @@ -302,10 +302,10 @@ void swingshot_update_us2(u8 *moby) vec_a[2] += 0.5f; if (CollLine(vec_a, ((Hero *)g_hero_state)->ptr[0xB10 / 4] + 0x10, 2, 0, 0) != 0) { if (((Hero *)g_hero_state)->f[0x31C / 4] > 0.5f) { - stub_empty_9_us2(6, 1); + stub_empty_8(6, 1); } else { - stub_empty_9_us2(0, 0); - stub_empty_13(stub_empty_2_us2(0), 0, 14.0f); + stub_empty_8(0, 0); + stub_empty_12(stub_empty(0), 0, 14.0f); } moby[0x20] = 0x13; } else { diff --git a/src/us2/game/00315DD0-sw.c b/src/us2/game/00315DD0-sw.c index 039199640..239cd89b5 100644 --- a/src/us2/game/00315DD0-sw.c +++ b/src/us2/game/00315DD0-sw.c @@ -37,12 +37,11 @@ extern int CollLine(void *, void *, int, void *, int); extern void moby_compute_throw_velocity(void *, void *, void *, float, float, float); extern int vec_fast_helper_b(void *); extern int math_fast_float_d(void *); -extern unsigned int stub_empty_8(int, int); -extern int stub_empty_5(int, int); -extern void stub_empty_10(int); +extern unsigned int stub_empty_7(int, int); +extern int stub_empty_5(); +extern void stub_empty_9(int); extern int PlayMobySound(int, int, void *); -extern int stub_empty_6(int); -extern void stub_empty_11(); +extern void stub_empty_10(); extern float moby_get_anim_value(void *); extern void thrown_item_launch(void *, void *, void *); extern void AddMobyToIndexList(void *, void *, int); @@ -50,9 +49,9 @@ extern void *thrown_item_spawn(void *, void *, void *); #define THROW_FLOAT(p,o) (*(float *)((char *)(p)+(o))) #define THROW_INT(p,o) (*(int *)((char *)(p)+(o))) #define THROW_PTR(p,o) (*(unsigned char **)((char *)(p)+(o))) -extern unsigned int stub_empty_9_us2(int, int); -extern void stub_empty_12(); -extern int stub_empty_7(int); +extern unsigned int stub_empty_8(int, int); +extern void stub_empty_11(); +extern int stub_empty_6(int); /* Updates the projectile thrower weapon: aims the arc from the camera, spawns the held projectile and launches it when fired (v2.00 copy). */ void UpdateProjectileThrower_us2(unsigned char *moby) @@ -95,7 +94,7 @@ void UpdateProjectileThrower_us2(unsigned char *moby) } if (!THROW_PTR(vars,0x50) || THROW_PTR(vars,0x50)[0x20]==0xFE || THROW_PTR(vars,0x50)[0x20]==0xFD) THROW_PTR(vars,0x50)=0; - if (g_hero_state.mode==1) stub_empty_9_us2(0x1D,1); + if (g_hero_state.mode==1) stub_empty_8(0x1D,1); if (THROW_PTR(vars,0x50) && !g_hero_state.locked) { held_data=THROW_PTR(THROW_PTR(vars,0x50),0x68); velocity.q=0; @@ -166,11 +165,11 @@ void UpdateProjectileThrower_us2(unsigned char *moby) if(moby[0x60]&2) moby[0x20]=2; /* Fall through. */ case 2: - if(g_hero_state.mode==1) stub_empty_9_us2(0x1D,1); + if(g_hero_state.mode==1) stub_empty_8(0x1D,1); if(moby[0x42]==moby[0x43] && moby[0x42]==3 && (moby[0x60]&2)) anim_start_blended(moby,1,0,2); if(THROW_FLOAT(vars,0x58)==0 && !g_hero_state.locked && (g_pad_state.buttons&g_hero_state.fireMask)) { if(stub_empty_5(-1,1)) { - stub_empty_11(4); + stub_empty_10(4); if(moby[0x43]!=3) anim_start_blended(moby,3,0,2); moby[0x20]=3; { @@ -179,8 +178,8 @@ void UpdateProjectileThrower_us2(unsigned char *moby) } } else PlayMobySound(4,0,moby); } - if(!(g_pad_state.buttons&g_hero_state.fireMask) || !stub_empty_7(-1)) { - if(g_hero_state.action>=9 || !g_hero_state.active) stub_empty_12(); + if(!(g_pad_state.buttons&g_hero_state.fireMask) || !stub_empty_6(-1)) { + if(g_hero_state.action>=9 || !g_hero_state.active) stub_empty_11(); } break; case 3: @@ -202,7 +201,7 @@ void UpdateProjectileThrower_us2(unsigned char *moby) } math_fast_float_d(vars+0x54); if(THROW_PTR(vars,0x50)) qcopy(THROW_PTR(vars,0x50)+0x10,vars+0x40); - else if(!THROW_INT(vars,0x54) && stub_empty_7(-1)) { + else if(!THROW_INT(vars,0x54) && stub_empty_6(-1)) { qzero_nc(&aim); THROW_PTR(vars,0x50)=thrown_item_spawn(moby,vars+0x40,&aim); } diff --git a/src/us2/game/00316C20-cc-g8.c b/src/us2/game/00316C20-cc-g8.c index fadea1094..169a8208c 100644 --- a/src/us2/game/00316C20-cc-g8.c +++ b/src/us2/game/00316C20-cc-g8.c @@ -44,13 +44,13 @@ typedef struct { char pad0[0x70]; float range; char pad74[0x6C]; } Level_00315E2 extern Level_00315E20 g_weapon_table[]; extern void moby_transform_joint_to_world(void *, int, void *); -extern unsigned int stub_empty_9_us2(int, int); +extern unsigned int stub_empty_8(int, int); extern char *FindNearestEligibleTarget(void *); extern float fast_vec_dist(void *, void *); extern float math_fabs(float); extern void hud_add_moby_marker(float, float, float, void *, u32, void *, int, int, int); extern void FastVecSub(void *, void *, void *); -extern void stub_empty_11(void); +extern void stub_empty_10(void); extern int math_fast_float_d(void *); extern void vec_fast_normalize_helper(void *, void *, float); extern void QueueMobyImpact(void *, void *); @@ -84,7 +84,7 @@ void dynamo_update_us2(u8 *moby) moby_transform_joint_to_world(moby, 0, g_emitter_origin); hero_ptr = g_hero_state; if (*(int *)(hero_ptr + 0x2294) == 1) - stub_empty_9_us2(0x1D, 1); + stub_empty_8(0x1D, 1); moby_transform_joint_to_world(moby, 0, aim); switch (moby[0x20]) { @@ -112,7 +112,7 @@ void dynamo_update_us2(u8 *moby) else g_dynamo_launch_mode = 4; moby[0x20] = 2; - stub_empty_11(); + stub_empty_10(); break; case 2: { char *hero; diff --git a/src/us2/game/00320A20-pickup-g8.c b/src/us2/game/00320A20-pickup-g8.c index f4d3aaf4d..9d1ca17ba 100644 --- a/src/us2/game/00320A20-pickup-g8.c +++ b/src/us2/game/00320A20-pickup-g8.c @@ -77,7 +77,7 @@ extern int math_fast_float_d(void *); extern float math_fabs(float); extern float vec_distance_xy(void *, void *); extern float gravity_get_center_distance(void *); -extern unsigned int stub_empty_8(int, int); +extern unsigned int stub_empty_7(int, int); extern void value_forward_three_args_us2(int, int, int); extern void moby_set_state(void *, int, int); extern int subtract_integer_with_clamp(int); @@ -158,7 +158,7 @@ void UpdateWeaponAmmoPickup_us2(PickupObject *object) if (allow) { item = data->weapon; previous = g_item_ammo_counts[item]; - stub_empty_8(item, data->amount); + stub_empty_7(item, data->amount); if (g_item_ammo_counts[item] > previous) { count = g_item_ammo_counts[item] - previous; value_forward_three_args_us2(count == 1 ? diff --git a/src/us2/game/0032AD60.c b/src/us2/game/0032AD60.c index ed41d44a7..369778145 100644 --- a/src/us2/game/0032AD60.c +++ b/src/us2/game/0032AD60.c @@ -11,7 +11,7 @@ extern int g_surface_height_tiles[] __attribute__((sda)); extern int g_surface_box_count[] __attribute__((sda)); extern int SampleSurfaceHeightMap(float *, float *, float, float, float); extern void RippleDisturb(int, int, int, float, float, float, float); -extern int actuator_calc_power_us2(void); +extern int stub_empty_30(void); /* Checks whether a falling object is above a surface-grid object and records on it whether it landed, sinking or was over water (v2.00 copy). */ void hero_check_under_falling_object_us2(char *moby) @@ -51,7 +51,7 @@ void hero_check_under_falling_object_us2(char *moby) } if (object_vars[0x14] == 0) { RippleDisturb(g_surface_height_tiles[0], g_surface_box_count[0], 1, *(float *)(moby + 0x10), *(float *)(moby + 0x14), 0.5f, -0.03f); - if (actuator_calc_power_us2() == 0) { + if (stub_empty_30() == 0) { object[0xBC] += 1; if (object[0xBC] >= 25) { context = g_music_state; diff --git a/src/us2/game/0032F944-sw-g8.c b/src/us2/game/0032F944-sw-g8.c index f1634b071..d47f936e8 100644 --- a/src/us2/game/0032F944-sw-g8.c +++ b/src/us2/game/0032F944-sw-g8.c @@ -67,7 +67,7 @@ extern void part_steer_effect_direction(int, void *, int); extern void vec_transform_or_copy(void *, void *); extern void shop_trigger_current_state_effect(void *, void *); extern void vec_add_object_direction_scaled(void *, void *, float); -extern unsigned int stub_empty_9_us2(int, int); +extern unsigned int stub_empty_8(int, int); extern void part_setup_object_effect_entry(void *, void *, void *); extern void anim_start_blended(void *, int, int, int); extern int PlayMobySound(int, int, void *); @@ -176,7 +176,7 @@ void vehicle_update_ridden_us2(char *moby) break; qcopy(moby + 0x10, &collision->point); ForceClaimNotice(6, 0, 1); - stub_empty_9_us2(28, 1); + stub_empty_8(28, 1); part_setup_object_effect_entry(moby + 0x10, moby + 0xF0, moby); STATE(moby) = 2; anim_start_blended(moby, 1, 0, 10); @@ -278,7 +278,7 @@ void vehicle_update_ridden_us2(char *moby) break; case 8: if (g_game_mode == 28) - stub_empty_9_us2(0, 1); + stub_empty_8(0, 1); if (*(short *)(g_camera_state_ptr + 0x86) == 27) cam_call_helper(); table_clear_entry_flag(update_handle); diff --git a/src/us2/game/003342A8-g8.c b/src/us2/game/003342A8-g8.c index cb2fb53bb..b316afcca 100644 --- a/src/us2/game/003342A8-g8.c +++ b/src/us2/game/003342A8-g8.c @@ -27,7 +27,7 @@ extern int flag_is_third_pending_set(void *); extern void level_capture_checkpoint_state(void *, void *); extern void game_set_slowdown_factor(void); extern int game_is_either_mode_two(void); -extern void stub_empty_15(void *, void *, int, int); +extern void stub_empty_14(void *, void *, int, int); extern unsigned int g_request_flag_table[]; typedef struct { @@ -133,7 +133,7 @@ void item_reward_trigger_update_us2(Thing *moby) if (game_is_either_mode_two() == 0) { if (vars->link != -1) { char *record = g_vec_record_table + (vars->link << 7); - stub_empty_15(record + 0x30, record + 0x70, 0, 1); + stub_empty_14(record + 0x30, record + 0x70, 0, 1); } moby_set_state(moby, 4, -1); } diff --git a/src/us2/game/003342A8-sw.c b/src/us2/game/003342A8-sw.c index 9b2a792b4..cb6e0ad93 100644 --- a/src/us2/game/003342A8-sw.c +++ b/src/us2/game/003342A8-sw.c @@ -18,8 +18,8 @@ extern void CalculateAimedLaunchVelocity_us2(void *, void *, char *, float, floa extern int coll_trace_projectile_to_impact(float *, float *, float *, float *, void *, void *, int *, float); extern void moby_set_entry_list_flag_byte(int, int); extern float IntToFloat(int); -extern void stub_empty_12(void); -extern void stub_empty_12(void); +extern void stub_empty_11(void); +extern void stub_empty_11(void); extern char *part_spawn_flying_chunk_b(int, void *, void *); extern char *part_spawn_flying_chunk_a(int, void *, void *); extern int math_fast_float_d(void *); @@ -67,7 +67,7 @@ typedef struct BeamVars { int reverse; int disabled; } BeamVars; -extern void stub_empty_11(void); +extern void stub_empty_10(void); /* Updates the Thermanator beam: traces the shot to its impact, fires chunks at a target while the button is held, and shows the gauge (v2.00 copy). */ void thermanator_update_us2(Target *moby) @@ -124,7 +124,7 @@ void thermanator_update_us2(Target *moby) break; case 2: if ((g_pad_pressed_flags & g_hero_state.input) && vars->hit && vars->valid && !vars->disabled) { - stub_empty_11(); + stub_empty_10(); moby->state = 3; if (!vars->reverse) { part_spawn_flying_chunk_b((int)moby, vars->position, dir); @@ -141,7 +141,7 @@ void thermanator_update_us2(Target *moby) break; case 3: if (!(g_pad_pressed_flags & g_hero_state.input) || !vars->hit || !vars->valid || vars->disabled) { - stub_empty_12(); + stub_empty_11(); moby->state = 2; } else if (math_fast_float_d(&vars->countdown)) { qcopy(spread, dir); diff --git a/src/us2/game/003396E8-flags.c b/src/us2/game/003396E8-flags.c deleted file mode 100644 index d52cfc8d1..000000000 --- a/src/us2/game/003396E8-flags.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Empty function (v2.00 version of ui_nop_c). */ -void ui_nop_c_us2(void) { -} diff --git a/src/us2/game/00339B00-flags.c b/src/us2/game/00339B00-flags.c deleted file mode 100644 index 69a0b5593..000000000 --- a/src/us2/game/00339B00-flags.c +++ /dev/null @@ -1,6 +0,0 @@ -#include "include_asm.h" -#include "names.h" - -/* Empty function (v2.00 version of ui_nop_d). */ -void ui_nop_d_us2(void) { -} diff --git a/src/us2/game/0034F9F8.c b/src/us2/game/0034F9F8.c index e5b98a072..d7cc02010 100644 --- a/src/us2/game/0034F9F8.c +++ b/src/us2/game/0034F9F8.c @@ -29,7 +29,7 @@ typedef struct { char *f58; char *f5c; } SlotObject; -extern void stub_empty_17(char *, long long); +extern void stub_empty_16(char *, long long); extern void func_002A05A8(char *); extern void func_002A1130(u32 *, u32, long long, u32); extern void func_002A0F48(char *); @@ -41,7 +41,7 @@ void menu_attach_slot_packets_us2(char *obj) char *sub = obj + 0xC00; SlotObject *s = (SlotObject *)sub; - stub_empty_17(sub, 0); + stub_empty_16(sub, 0); func_002A05A8(sub); if (s->f42 != 0xFF) { EntryTable *table = s->f24; diff --git a/tests/test_carry.py b/tests/test_carry.py index a06684964..df8d24c9c 100644 --- a/tests/test_carry.py +++ b/tests/test_carry.py @@ -482,6 +482,27 @@ def test_align_finds_moved_and_changed_functions(self): self.assertEqual(out[0x2028], (0x2028, 24, "h", "same")) +class Hooks(unittest.TestCase): + def test_hooks_are_paired_by_their_callers(self): + # V has one more hook in front; the order pairs every hook with the wrong one. The caller + # names the first and the last, the one between takes its place in the run. + jal = lambda t: 0x0C000000 | (t >> 2) + us = code(jal(0x2000), NOP, jal(0x2010), NOP) + code(JR_RA, NOP) * 3 + v = code(jal(0x2008), NOP, jal(0x2018), NOP) + code(JR_RA, NOP) * 4 + programs = {"us": [(0x1000, us[:16]), (0x2000, us[16:])], "us2": [(0x1000, v[:16]), (0x2000, v[16:])]} + chosen = ["us"] + aligned = {"boot": [(0x1000, 16, "caller", "same", "caller", 0x1000), + (0x2000, 8, "h0", "same", "h0", 0x2000), (0x2008, 8, "h1", "same", "h1", 0x2008), + (0x2010, 8, "h2", "same", "h2", 0x2010), (0x2018, 8, None, "cut", None, None)]} + rows = [("caller", 0x1000, 16), ("h0", 0x2000, 8), ("h1", 0x2008, 8), ("h2", 0x2010, 8)] + with patch.object(levels, "select", side_effect=lambda v: chosen.__setitem__(0, v)), \ + patch.object(levels, "read_boot_functions", return_value=rows), \ + patch.object(carry, "texts", side_effect=lambda p: programs[chosen[0]]): + carry.hooks(aligned, "us2") + self.assertEqual([(e[0], e[2]) for e in aligned["boot"]], + [(0x1000, "caller"), (0x2000, None), (0x2008, "h0"), (0x2010, "h1"), (0x2018, "h2")]) + + class Demotion(unittest.TestCase): """tools/carry.py --demote: what the build disproves, without realigning the release.""" diff --git a/tools/carry.py b/tools/carry.py index c75f49302..05b8e6256 100644 --- a/tools/carry.py +++ b/tools/carry.py @@ -26,6 +26,8 @@ word, every `jal` target, and the first word after a `jr $ra` and its delay slot that is not zero. A piece's size stops after its last return's delay slot when only zeros follow. +The boot's empty level hooks are alike, so they are paired by their callers instead (hooks()). + Then the catalogue rules of tools/levels.py apply unchanged: the linker's filler and an epilogue's residue are not functions, and identical code (V's own levels.identity, its own resident memory compared) is one function, the k-th copy in each level being one. @@ -223,6 +225,78 @@ def calls(aligned: dict, version: str) -> None: return +# The delay slots of an empty function: nothing, or a zero result (daddu $v0, $zero, $zero). +EMPTY_SLOTS = (0x00000000, 0x0000102D) + + +def hooks(aligned: dict, version: str) -> None: + """The boot's empty 8-byte functions (the level hooks each level fills) are alike, so the + alignment pairs them by order, and the order does not hold where a release has more of them. + The calls say which is which: a v1.01 function with a place in V that calls a hook calls V's + hook at the same word. A hook no such call names takes its place in the run between two that + have, where both moved alike. Run before calls(), which then sees the callers as the same.""" + levels.select("us") + us = texts("boot") + us_rows = levels.read_boot_functions() + levels.select(version) + v = texts("boot") + + def empty(spans, a, n): + w = levels.words(read(spans, a, n)) + return n == 8 and len(w) == 2 and w[0] == JR_RA and w[1] in EMPTY_SLOTS + + ext = aligned["boot"] + us_hooks = {a: (name, read(us, a, 8)) for name, a, n in us_rows if empty(us, a, n)} + v_hooks = {e[0]: read(v, e[0], 8) for e in ext if empty(v, e[0], e[1])} + # The callers: v1.01's function each of V's extents takes the place of, and else the one + # function of V of the same shape (immediates and targets aside), wherever it moved. + def shape(b: bytes) -> tuple: + # The instructions with their immediates and jump targets left out. + return tuple(w if w >> 26 == 0 else w & 0xFC000000 if w >> 26 in (2, 3) else w & 0xFFFF0000 + for w in levels.words(b)) + + us_shapes: dict[tuple, list[int]] = {} + for _, a, n in us_rows: + us_shapes.setdefault((shape(read(us, a, n)), n), []).append(a) + v_shapes: dict[tuple, list[int]] = {} + for e in ext: + v_shapes.setdefault((shape(read(v, e[0], e[1])), e[1]), []).append(e[0]) + callers = {(e[0], e[1], e[5]) for e in ext if e[5] is not None} + for key, places in v_shapes.items(): + if len(places) == 1 and len(us_shapes.get(key, ())) == 1: + callers.add((places[0], key[1], us_shapes[key][0])) + votes: dict[int, set[int]] = {} + for va, n, ua in sorted(callers): + mine, theirs = levels.words(read(us, ua, n)), levels.words(read(v, va, n)) + for i, (x, y) in enumerate(zip(mine, theirs)): + if x >> 26 != 3 or y >> 26 != 3: + continue + h = ((ua + 4 * i) & 0xF0000000) | ((x & 0x3FFFFFF) << 2) + r = ((va + 4 * i) & 0xF0000000) | ((y & 0x3FFFFFF) << 2) + if h in us_hooks and r in v_hooks: + votes.setdefault(h, set()).add(r) + paired = {h: next(iter(rs)) for h, rs in votes.items() if len(rs) == 1} + taken = [r for r in paired.values()] + paired = {h: r for h, r in paired.items() if taken.count(r) == 1 and v_hooks[r] == us_hooks[h][1]} + known = sorted(paired) + for h in sorted(set(us_hooks) - set(paired)): + before, after = [k for k in known if k < h], [k for k in known if k > h] + if not before or not after: + continue + a, b = before[-1], after[0] + r = paired[a] + (h - a) + if b - a == paired[b] - paired[a] and v_hooks.get(r) == us_hooks[h][1] and r not in paired.values(): + paired[h] = r + at = {r: h for h, r in paired.items()} + names = {at[r]: us_hooks[at[r]][0] for r in at} + for k, (va, n, name, how, was, ua) in enumerate(ext): + if va in at: + h = at[va] + ext[k] = (va, n, names[h], "same", names[h], h) + elif va in v_hooks and (ua in paired or name in names.values()): + ext[k] = (va, n, None, "changed", was, ua) + + def branch_target(x: int, at: int) -> int | None: """Where the conditional branch (or `b`) X at AT goes; None for anything else.""" op, rt = x >> 26, (x >> 16) & 31 @@ -862,6 +936,7 @@ def main() -> None: for p, ext in aligned.items(): aligned[p] = [(e[0], e[1], None, "changed", e[4], e[5]) if e[3] == "same" and e[2] in kept_out else e for e in ext] + hooks(aligned, version) calls(aligned, version) joins(aligned, version) levels.select(version) From 13cfad48094c20ff009a7ffbbc1f2b078d82c1cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20K=C5=82ysz?= Date: Mon, 16 Nov 2026 19:33:27 +0000 Subject: [PATCH 2/2] chore(progress): regenerate the PAL and USA v2.00 reports for the hook names --- docs/build/versions.md | 4 +- progress/pal/report.json | 689 ++++++++++++--------------------------- progress/us2/report.json | 481 +++++++++------------------ 3 files changed, 362 insertions(+), 812 deletions(-) diff --git a/docs/build/versions.md b/docs/build/versions.md index af020fd18..6c6d21813 100644 --- a/docs/build/versions.md +++ b/docs/build/versions.md @@ -161,8 +161,8 @@ Current matched coverage (the three reports from validated builds): | Version | Release | Functions | Boot code | Level code | Total code | | --- | --- | ---: | ---: | ---: | ---: | | `SCUS_972.68` | USA v1.01 | 8,527 of 8,527 | 1,041,536 of 1,041,536 | 4,482,516 of 4,482,516 | 5,524,052 of 5,524,052 (100.00%) | -| `SCES_516.07` | Europe/Australia v1.00 | 8,607 of 8,607 | 1,051,260 of 1,051,260 | 4,645,608 of 4,645,608 | 5,696,868 of 5,696,868 (100.00%) | -| `SCUS_972.68_v2` | USA v2.00 (Greatest Hits) | 8,579 of 8,579 | 1,045,204 of 1,045,204 | 4,532,744 of 4,532,744 | 5,577,948 of 5,577,948 (100.00%) | +| `SCES_516.07` | Europe/Australia v1.00 | 8,608 of 8,608 | 1,051,276 of 1,051,276 | 4,645,608 of 4,645,608 | 5,696,884 of 5,696,884 (100.00%) | +| `SCUS_972.68_v2` | USA v2.00 (Greatest Hits) | 8,580 of 8,580 | 1,045,220 of 1,045,220 | 4,532,744 of 4,532,744 | 5,577,964 of 5,577,964 (100.00%) | `tools/progress.py --version us|pal|us2` maintains the corresponding coverage row. In the original layout sample, 1,036 of v1.01's then-matched functions differed in diff --git a/progress/pal/report.json b/progress/pal/report.json index 7782e0230..984bd367b 100644 --- a/progress/pal/report.json +++ b/progress/pal/report.json @@ -2,16 +2,16 @@ "version": 2, "measures": { "fuzzy_match_percent": 100.0, - "total_code": "5696868", - "matched_code": "5696868", + "total_code": "5696884", + "matched_code": "5696884", "matched_code_percent": 100.0, - "total_functions": 8607, - "matched_functions": 8607, + "total_functions": 8608, + "matched_functions": 8608, "matched_functions_percent": 100.0, - "complete_code": "5696868", + "complete_code": "5696884", "complete_code_percent": 100.0, - "total_units": 1370, - "complete_units": 1370 + "total_units": 1359, + "complete_units": 1359 }, "categories": [ { @@ -19,13 +19,13 @@ "name": "Boot executable", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "1051260", - "matched_code": "1051260", + "total_code": "1051276", + "matched_code": "1051276", "matched_code_percent": 100.0, - "total_functions": 3087, - "matched_functions": 3087, + "total_functions": 3088, + "matched_functions": 3088, "matched_functions_percent": 100.0, - "complete_code": "1051260", + "complete_code": "1051276", "complete_code_percent": 100.0 } }, @@ -49,13 +49,13 @@ "name": "Boot game code", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "1051260", - "matched_code": "1051260", + "total_code": "1051276", + "matched_code": "1051276", "matched_code_percent": 100.0, - "total_functions": 3087, - "matched_functions": 3087, + "total_functions": 3088, + "matched_functions": 3088, "matched_functions_percent": 100.0, - "complete_code": "1051260", + "complete_code": "1051276", "complete_code_percent": 100.0 } }, @@ -62406,13 +62406,13 @@ "name": "game/0026EA00", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "5100", - "matched_code": "5100", + "total_code": "5172", + "matched_code": "5172", "matched_code_percent": 100.0, - "total_functions": 43, - "matched_functions": 43, + "total_functions": 51, + "matched_functions": 51, "matched_functions_percent": 100.0, - "complete_code": "5100", + "complete_code": "5172", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -62437,7 +62437,16 @@ } }, { - "name": "func_0026F720", + "name": "func_0026F710", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "2944", + "metadata": { + "virtual_address": "2553216" + } + }, + { + "name": "func_0026F718", "size": "8", "fuzzy_match_percent": 100.0, "address": "2952", @@ -62446,7 +62455,7 @@ } }, { - "name": "func_0026F728", + "name": "func_0026F720", "size": "8", "fuzzy_match_percent": 100.0, "address": "2960", @@ -62455,7 +62464,16 @@ } }, { - "name": "func_0026F738", + "name": "func_0026F728", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "2968", + "metadata": { + "virtual_address": "2553240" + } + }, + { + "name": "func_0026F730", "size": "8", "fuzzy_match_percent": 100.0, "address": "2976", @@ -62464,7 +62482,7 @@ } }, { - "name": "func_0026F740", + "name": "func_0026F738", "size": "8", "fuzzy_match_percent": 100.0, "address": "2984", @@ -62473,7 +62491,7 @@ } }, { - "name": "func_0026F748", + "name": "func_0026F740", "size": "8", "fuzzy_match_percent": 100.0, "address": "2992", @@ -62482,7 +62500,16 @@ } }, { - "name": "func_0026F758", + "name": "func_0026F748", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3000", + "metadata": { + "virtual_address": "2553272" + } + }, + { + "name": "func_0026F750", "size": "8", "fuzzy_match_percent": 100.0, "address": "3008", @@ -62491,7 +62518,7 @@ } }, { - "name": "func_0026F760", + "name": "func_0026F758", "size": "8", "fuzzy_match_percent": 100.0, "address": "3016", @@ -62500,7 +62527,7 @@ } }, { - "name": "func_0026F768", + "name": "func_0026F760", "size": "8", "fuzzy_match_percent": 100.0, "address": "3024", @@ -62509,7 +62536,7 @@ } }, { - "name": "func_0026F770", + "name": "func_0026F768", "size": "8", "fuzzy_match_percent": 100.0, "address": "3032", @@ -62518,7 +62545,7 @@ } }, { - "name": "func_0026F778", + "name": "func_0026F770", "size": "8", "fuzzy_match_percent": 100.0, "address": "3040", @@ -62527,7 +62554,7 @@ } }, { - "name": "func_0026F780", + "name": "func_0026F778", "size": "8", "fuzzy_match_percent": 100.0, "address": "3048", @@ -62536,7 +62563,7 @@ } }, { - "name": "func_0026F788", + "name": "func_0026F780", "size": "8", "fuzzy_match_percent": 100.0, "address": "3056", @@ -62545,7 +62572,7 @@ } }, { - "name": "func_0026F790", + "name": "func_0026F788", "size": "8", "fuzzy_match_percent": 100.0, "address": "3064", @@ -62554,7 +62581,7 @@ } }, { - "name": "func_0026F798", + "name": "func_0026F790", "size": "8", "fuzzy_match_percent": 100.0, "address": "3072", @@ -62563,7 +62590,34 @@ } }, { - "name": "func_0026F7C0", + "name": "func_0026F798", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3080", + "metadata": { + "virtual_address": "2553352" + } + }, + { + "name": "func_0026F7A0", + "size": "16", + "fuzzy_match_percent": 100.0, + "address": "3088", + "metadata": { + "virtual_address": "2553360" + } + }, + { + "name": "func_0026F7B0", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3104", + "metadata": { + "virtual_address": "2553376" + } + }, + { + "name": "func_0026F7B8", "size": "8", "fuzzy_match_percent": 100.0, "address": "3112", @@ -62572,7 +62626,7 @@ } }, { - "name": "func_0026F7C8", + "name": "func_0026F7C0", "size": "8", "fuzzy_match_percent": 100.0, "address": "3120", @@ -62581,7 +62635,7 @@ } }, { - "name": "func_0026F7D0", + "name": "func_0026F7C8", "size": "8", "fuzzy_match_percent": 100.0, "address": "3128", @@ -62590,7 +62644,7 @@ } }, { - "name": "func_0026F7D8", + "name": "func_0026F7D0", "size": "8", "fuzzy_match_percent": 100.0, "address": "3136", @@ -62599,7 +62653,7 @@ } }, { - "name": "func_0026F7E0", + "name": "func_0026F7D8", "size": "8", "fuzzy_match_percent": 100.0, "address": "3144", @@ -62608,7 +62662,7 @@ } }, { - "name": "func_0026F7E8", + "name": "func_0026F7E0", "size": "8", "fuzzy_match_percent": 100.0, "address": "3152", @@ -62617,7 +62671,7 @@ } }, { - "name": "func_0026F7F0", + "name": "func_0026F7E8", "size": "8", "fuzzy_match_percent": 100.0, "address": "3160", @@ -62626,7 +62680,7 @@ } }, { - "name": "func_0026F7F8", + "name": "func_0026F7F0", "size": "8", "fuzzy_match_percent": 100.0, "address": "3168", @@ -62635,7 +62689,7 @@ } }, { - "name": "func_0026F800", + "name": "func_0026F7F8", "size": "8", "fuzzy_match_percent": 100.0, "address": "3176", @@ -62643,6 +62697,24 @@ "virtual_address": "2553448" } }, + { + "name": "func_0026F800", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3184", + "metadata": { + "virtual_address": "2553456" + } + }, + { + "name": "func_0026F808", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3192", + "metadata": { + "virtual_address": "2553464" + } + }, { "name": "func_0026FC78", "size": "464", @@ -67499,13 +67571,13 @@ "name": "game/00288D88", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "3216", - "matched_code": "3216", + "total_code": "3224", + "matched_code": "3224", "matched_code_percent": 100.0, - "total_functions": 19, - "matched_functions": 19, + "total_functions": 20, + "matched_functions": 20, "matched_functions_percent": 100.0, - "complete_code": "3216", + "complete_code": "3224", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -67538,6 +67610,15 @@ "virtual_address": "2660304" } }, + { + "name": "func_00289AA0", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3528", + "metadata": { + "virtual_address": "2663528" + } + }, { "name": "func_00289FC8", "size": "100", @@ -82195,13 +82276,13 @@ "name": "game/002FC8D0", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "4516", - "matched_code": "4516", + "total_code": "4524", + "matched_code": "4524", "matched_code_percent": 100.0, - "total_functions": 24, - "matched_functions": 24, + "total_functions": 25, + "matched_functions": 25, "matched_functions_percent": 100.0, - "complete_code": "4516", + "complete_code": "4524", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -82333,6 +82414,15 @@ "virtual_address": "3145384" } }, + { + "name": "func_002FF288", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "10712", + "metadata": { + "virtual_address": "3146496" + } + }, { "name": "func_002FF290", "size": "112", @@ -85445,13 +85535,13 @@ "name": "game/00327038", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "3208", - "matched_code": "3208", + "total_code": "3216", + "matched_code": "3216", "matched_code_percent": 100.0, - "total_functions": 14, - "matched_functions": 14, + "total_functions": 15, + "matched_functions": 15, "matched_functions_percent": 100.0, - "complete_code": "3208", + "complete_code": "3216", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -85529,6 +85619,15 @@ "virtual_address": "3321376" } }, + { + "name": "func_0032A130", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "6664", + "metadata": { + "virtual_address": "3324200" + } + }, { "name": "func_0032A978", "size": "184", @@ -87722,13 +87821,13 @@ "name": "game/003387A0", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", + "total_code": "16", + "matched_code": "16", "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, + "total_functions": 2, + "matched_functions": 2, "matched_functions_percent": 100.0, - "complete_code": "8", + "complete_code": "16", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -87742,6 +87841,15 @@ "metadata": { "virtual_address": "3384720" } + }, + { + "name": "func_00338A58", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "928", + "metadata": { + "virtual_address": "3385648" + } } ], "metadata": { @@ -87757,13 +87865,13 @@ "name": "game/00338A60", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "120", - "matched_code": "120", + "total_code": "128", + "matched_code": "128", "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, + "total_functions": 2, + "matched_functions": 2, "matched_functions_percent": 100.0, - "complete_code": "120", + "complete_code": "128", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -87777,6 +87885,15 @@ "metadata": { "virtual_address": "3385656" } + }, + { + "name": "func_00338F50", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "1288", + "metadata": { + "virtual_address": "3386944" + } } ], "metadata": { @@ -87897,13 +88014,13 @@ "name": "game/0033F030", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "884", - "matched_code": "884", + "total_code": "892", + "matched_code": "892", "matched_code_percent": 100.0, - "total_functions": 2, - "matched_functions": 2, + "total_functions": 3, + "matched_functions": 3, "matched_functions_percent": 100.0, - "complete_code": "884", + "complete_code": "892", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -87926,6 +88043,15 @@ "metadata": { "virtual_address": "3419120" } + }, + { + "name": "func_003417C8", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "4024", + "metadata": { + "virtual_address": "3422256" + } } ], "metadata": { @@ -90257,41 +90383,6 @@ ] } }, - { - "name": "pal/game/0026EC50", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0026F580", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553216" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/0026EC50.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "pal/game/0026EC50-loader", "measures": { @@ -90327,190 +90418,6 @@ ] } }, - { - "name": "pal/game/0026F598", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0026F598", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553240" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/0026F598.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, - { - "name": "pal/game/0026F5B8", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0026F5B8", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553272" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/0026F5B8.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, - { - "name": "pal/game/0026F608", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "16", - "matched_code": "16", - "matched_code_percent": 100.0, - "total_functions": 2, - "matched_functions": 2, - "matched_functions_percent": 100.0, - "complete_code": "16", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0026F608", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553352" - } - }, - { - "name": "func_PAL_0026F620", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "24", - "metadata": { - "virtual_address": "2553376" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/0026F608.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, - { - "name": "pal/game/0026F670", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0026F670", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553456" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/0026F670.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, - { - "name": "pal/game/0026F670-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0026F678", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553464" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/0026F670-flags.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "pal/game/0026FCB8", "measures": { @@ -91677,41 +91584,6 @@ ] } }, - { - "name": "pal/game/00289AA8-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0028A468", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2663528" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/00289AA8-flags.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "pal/game/00289AA8-sw", "measures": { @@ -103459,41 +103331,6 @@ ] } }, - { - "name": "pal/game/00300104-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_00300300", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "3146496" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/00300104-flags.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "pal/game/00300130-start", "measures": { @@ -107192,13 +107029,13 @@ "name": "pal/game/0032B650", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "728", - "matched_code": "728", + "total_code": "720", + "matched_code": "720", "matched_code_percent": 100.0, - "total_functions": 3, - "matched_functions": 3, + "total_functions": 2, + "matched_functions": 2, "matched_functions_percent": 100.0, - "complete_code": "728", + "complete_code": "720", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -107221,15 +107058,6 @@ "metadata": { "virtual_address": "3323696" } - }, - { - "name": "func_PAL_0032B920", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "728", - "metadata": { - "virtual_address": "3324200" - } } ], "metadata": { @@ -108843,41 +108671,6 @@ ] } }, - { - "name": "pal/game/0033A598-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0033A930", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "3385648" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/0033A598-flags.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "pal/game/0033A5F0-g8", "measures": { @@ -108948,41 +108741,6 @@ ] } }, - { - "name": "pal/game/0033A9B0-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_0033AE40", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "3386944" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/0033A9B0-flags.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "pal/game/0033AEF8", "measures": { @@ -110830,41 +110588,6 @@ ] } }, - { - "name": "pal/game/00343638-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_PAL_00343830", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "3422256" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/pal/game/00343638-flags.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "pal/game/00343638-g8", "measures": { diff --git a/progress/us2/report.json b/progress/us2/report.json index 020b20231..2a01efd70 100644 --- a/progress/us2/report.json +++ b/progress/us2/report.json @@ -2,16 +2,16 @@ "version": 2, "measures": { "fuzzy_match_percent": 100.0, - "total_code": "5577948", - "matched_code": "5577948", + "total_code": "5577964", + "matched_code": "5577964", "matched_code_percent": 100.0, - "total_functions": 8579, - "matched_functions": 8579, + "total_functions": 8580, + "matched_functions": 8580, "matched_functions_percent": 100.0, - "complete_code": "5577948", + "complete_code": "5577964", "complete_code_percent": 100.0, - "total_units": 1295, - "complete_units": 1295 + "total_units": 1288, + "complete_units": 1288 }, "categories": [ { @@ -19,13 +19,13 @@ "name": "Boot executable", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "1045204", - "matched_code": "1045204", + "total_code": "1045220", + "matched_code": "1045220", "matched_code_percent": 100.0, - "total_functions": 3088, - "matched_functions": 3088, + "total_functions": 3089, + "matched_functions": 3089, "matched_functions_percent": 100.0, - "complete_code": "1045204", + "complete_code": "1045220", "complete_code_percent": 100.0 } }, @@ -49,13 +49,13 @@ "name": "Boot game code", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "1045204", - "matched_code": "1045204", + "total_code": "1045220", + "matched_code": "1045220", "matched_code_percent": 100.0, - "total_functions": 3088, - "matched_functions": 3088, + "total_functions": 3089, + "matched_functions": 3089, "matched_functions_percent": 100.0, - "complete_code": "1045204", + "complete_code": "1045220", "complete_code_percent": 100.0 } }, @@ -62145,13 +62145,13 @@ "name": "game/0026EA00", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "5804", - "matched_code": "5804", + "total_code": "5876", + "matched_code": "5876", "matched_code_percent": 100.0, - "total_functions": 46, - "matched_functions": 46, + "total_functions": 54, + "matched_functions": 54, "matched_functions_percent": 100.0, - "complete_code": "5804", + "complete_code": "5876", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -62185,7 +62185,16 @@ } }, { - "name": "func_0026F720", + "name": "func_0026F710", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3152", + "metadata": { + "virtual_address": "2553624" + } + }, + { + "name": "func_0026F718", "size": "8", "fuzzy_match_percent": 100.0, "address": "3160", @@ -62194,7 +62203,7 @@ } }, { - "name": "func_0026F728", + "name": "func_0026F720", "size": "8", "fuzzy_match_percent": 100.0, "address": "3168", @@ -62203,7 +62212,16 @@ } }, { - "name": "func_0026F738", + "name": "func_0026F728", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3176", + "metadata": { + "virtual_address": "2553648" + } + }, + { + "name": "func_0026F730", "size": "8", "fuzzy_match_percent": 100.0, "address": "3184", @@ -62212,7 +62230,7 @@ } }, { - "name": "func_0026F740", + "name": "func_0026F738", "size": "8", "fuzzy_match_percent": 100.0, "address": "3192", @@ -62221,7 +62239,7 @@ } }, { - "name": "func_0026F748", + "name": "func_0026F740", "size": "8", "fuzzy_match_percent": 100.0, "address": "3200", @@ -62230,7 +62248,16 @@ } }, { - "name": "func_0026F758", + "name": "func_0026F748", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3208", + "metadata": { + "virtual_address": "2553680" + } + }, + { + "name": "func_0026F750", "size": "8", "fuzzy_match_percent": 100.0, "address": "3216", @@ -62239,7 +62266,7 @@ } }, { - "name": "func_0026F760", + "name": "func_0026F758", "size": "8", "fuzzy_match_percent": 100.0, "address": "3224", @@ -62248,7 +62275,7 @@ } }, { - "name": "func_0026F768", + "name": "func_0026F760", "size": "8", "fuzzy_match_percent": 100.0, "address": "3232", @@ -62257,7 +62284,7 @@ } }, { - "name": "func_0026F770", + "name": "func_0026F768", "size": "8", "fuzzy_match_percent": 100.0, "address": "3240", @@ -62266,7 +62293,7 @@ } }, { - "name": "func_0026F778", + "name": "func_0026F770", "size": "8", "fuzzy_match_percent": 100.0, "address": "3248", @@ -62275,7 +62302,7 @@ } }, { - "name": "func_0026F780", + "name": "func_0026F778", "size": "8", "fuzzy_match_percent": 100.0, "address": "3256", @@ -62284,7 +62311,7 @@ } }, { - "name": "func_0026F788", + "name": "func_0026F780", "size": "8", "fuzzy_match_percent": 100.0, "address": "3264", @@ -62293,7 +62320,7 @@ } }, { - "name": "func_0026F790", + "name": "func_0026F788", "size": "8", "fuzzy_match_percent": 100.0, "address": "3272", @@ -62302,7 +62329,7 @@ } }, { - "name": "func_0026F798", + "name": "func_0026F790", "size": "8", "fuzzy_match_percent": 100.0, "address": "3280", @@ -62311,7 +62338,34 @@ } }, { - "name": "func_0026F7C0", + "name": "func_0026F798", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3288", + "metadata": { + "virtual_address": "2553760" + } + }, + { + "name": "func_0026F7A0", + "size": "16", + "fuzzy_match_percent": 100.0, + "address": "3296", + "metadata": { + "virtual_address": "2553768" + } + }, + { + "name": "func_0026F7B0", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3312", + "metadata": { + "virtual_address": "2553784" + } + }, + { + "name": "func_0026F7B8", "size": "8", "fuzzy_match_percent": 100.0, "address": "3320", @@ -62320,7 +62374,7 @@ } }, { - "name": "func_0026F7C8", + "name": "func_0026F7C0", "size": "8", "fuzzy_match_percent": 100.0, "address": "3328", @@ -62329,7 +62383,7 @@ } }, { - "name": "func_0026F7D0", + "name": "func_0026F7C8", "size": "8", "fuzzy_match_percent": 100.0, "address": "3336", @@ -62338,7 +62392,7 @@ } }, { - "name": "func_0026F7D8", + "name": "func_0026F7D0", "size": "8", "fuzzy_match_percent": 100.0, "address": "3344", @@ -62346,49 +62400,67 @@ "virtual_address": "2553816" } }, + { + "name": "func_0026F7D8", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3360", + "metadata": { + "virtual_address": "2553832" + } + }, { "name": "func_0026F7E0", "size": "8", "fuzzy_match_percent": 100.0, - "address": "3352", + "address": "3368", "metadata": { - "virtual_address": "2553824" + "virtual_address": "2553840" } }, { "name": "func_0026F7E8", "size": "8", "fuzzy_match_percent": 100.0, - "address": "3360", + "address": "3376", "metadata": { - "virtual_address": "2553832" + "virtual_address": "2553848" } }, { "name": "func_0026F7F0", "size": "8", "fuzzy_match_percent": 100.0, - "address": "3368", + "address": "3384", "metadata": { - "virtual_address": "2553840" + "virtual_address": "2553856" } }, { "name": "func_0026F7F8", "size": "8", "fuzzy_match_percent": 100.0, - "address": "3376", + "address": "3392", "metadata": { - "virtual_address": "2553848" + "virtual_address": "2553864" } }, { "name": "func_0026F800", "size": "8", "fuzzy_match_percent": 100.0, - "address": "3384", + "address": "3400", "metadata": { - "virtual_address": "2553856" + "virtual_address": "2553872" + } + }, + { + "name": "func_0026F808", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "3408", + "metadata": { + "virtual_address": "2553880" } }, { @@ -94714,13 +94786,13 @@ "name": "game/003387A0", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", + "total_code": "16", + "matched_code": "16", "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, + "total_functions": 2, + "matched_functions": 2, "matched_functions_percent": 100.0, - "complete_code": "8", + "complete_code": "16", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -94734,6 +94806,15 @@ "metadata": { "virtual_address": "3380960" } + }, + { + "name": "func_00338A58", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "928", + "metadata": { + "virtual_address": "3381888" + } } ], "metadata": { @@ -94749,13 +94830,13 @@ "name": "game/00338A60", "measures": { "fuzzy_match_percent": 100.0, - "total_code": "120", - "matched_code": "120", + "total_code": "128", + "matched_code": "128", "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, + "total_functions": 2, + "matched_functions": 2, "matched_functions_percent": 100.0, - "complete_code": "120", + "complete_code": "128", "complete_code_percent": 100.0, "total_units": 1, "complete_units": 1 @@ -94769,6 +94850,15 @@ "metadata": { "virtual_address": "3381896" } + }, + { + "name": "func_00338F50", + "size": "8", + "fuzzy_match_percent": 100.0, + "address": "1288", + "metadata": { + "virtual_address": "3383184" + } } ], "metadata": { @@ -97312,41 +97402,6 @@ ] } }, - { - "name": "us2/game/0026EDE8", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_US2_0026F718", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553624" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/us2/game/0026EDE8.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "us2/game/0026EDE8-loader", "measures": { @@ -97383,7 +97438,7 @@ } }, { - "name": "us2/game/0026F730", + "name": "us2/game/0026F7E0", "measures": { "fuzzy_match_percent": 100.0, "total_code": "8", @@ -97399,176 +97454,18 @@ }, "functions": [ { - "name": "func_US2_0026F730", + "name": "func_US2_0026F7E0", "size": "8", "fuzzy_match_percent": 100.0, "address": "0", "metadata": { - "virtual_address": "2553648" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/us2/game/0026F730.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, - { - "name": "us2/game/0026F750", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_US2_0026F750", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553680" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/us2/game/0026F750.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, - { - "name": "us2/game/0026F7A0", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "16", - "matched_code": "16", - "matched_code_percent": 100.0, - "total_functions": 2, - "matched_functions": 2, - "matched_functions_percent": 100.0, - "complete_code": "16", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_US2_0026F7A0", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553760" - } - }, - { - "name": "func_US2_0026F7B8", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "24", - "metadata": { - "virtual_address": "2553784" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/us2/game/0026F7A0.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, - { - "name": "us2/game/0026F808", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "16", - "matched_code": "16", - "matched_code_percent": 100.0, - "total_functions": 2, - "matched_functions": 2, - "matched_functions_percent": 100.0, - "complete_code": "16", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_US2_0026F808", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553864" - } - }, - { - "name": "func_US2_0026F810", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "8", - "metadata": { - "virtual_address": "2553872" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/us2/game/0026F808.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, - { - "name": "us2/game/0026F808-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_US2_0026F818", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "2553880" + "virtual_address": "2553824" } } ], "metadata": { "complete": true, - "source_path": "src/us2/game/0026F808-flags.c", + "source_path": "src/us2/game/0026F7E0.c", "progress_categories": [ "executable", "game" @@ -106723,41 +106620,6 @@ ] } }, - { - "name": "us2/game/003396E8-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_US2_00339A80", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "3381888" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/us2/game/003396E8-flags.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "us2/game/00339740-g8", "measures": { @@ -106828,41 +106690,6 @@ ] } }, - { - "name": "us2/game/00339B00-flags", - "measures": { - "fuzzy_match_percent": 100.0, - "total_code": "8", - "matched_code": "8", - "matched_code_percent": 100.0, - "total_functions": 1, - "matched_functions": 1, - "matched_functions_percent": 100.0, - "complete_code": "8", - "complete_code_percent": 100.0, - "total_units": 1, - "complete_units": 1 - }, - "functions": [ - { - "name": "func_US2_00339F90", - "size": "8", - "fuzzy_match_percent": 100.0, - "address": "0", - "metadata": { - "virtual_address": "3383184" - } - } - ], - "metadata": { - "complete": true, - "source_path": "src/us2/game/00339B00-flags.c", - "progress_categories": [ - "executable", - "game" - ] - } - }, { "name": "us2/game/0033A048", "measures": {