Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/names.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ func_0026F788 stub_empty_16 descriptive config/names_local.tsv
func_0026F790 stub_empty_17 descriptive config/names_local.tsv
func_0026F798 stub_empty_18 descriptive config/names_local.tsv
func_0026F7A0 stub_empty_19 descriptive config/names_local.tsv
func_0026F7B0 stub_empty_20 descriptive config/names_local.tsv
func_0026F7B0 level_hook_hero_button_hold_timers descriptive config/names_local.tsv stub_empty_20
func_0026F7B8 stub_empty_21 descriptive config/names_local.tsv
func_0026F7C0 stub_empty_22 descriptive config/names_local.tsv
func_0026F7C8 stub_empty_23 descriptive config/names_local.tsv
Expand Down
2 changes: 1 addition & 1 deletion config/names_local.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ func_0026F788 stub_empty_16 empty or returns zero (was EmptyStubF788)
func_0026F790 stub_empty_17 empty or returns zero (was EmptyStubF790)
func_0026F798 stub_empty_18 empty or returns zero (was EmptyStubF798)
func_0026F7A0 stub_empty_19 empty or returns zero (was EmptyStubF7A0)
func_0026F7B0 stub_empty_20 empty or returns zero (was EmptyStubF7B0)
func_0026F7B0 level_hook_hero_button_hold_timers empty in the boot; a level hook each level's program fills: its value in every one of USA v2.00's 27 level programs is that level's hero_update_button_hold_timers (level 0 0x2CB4C0, level 4 0x2EDD80) (was stub_empty_20)
func_0026F7B8 stub_empty_21 empty or returns zero (was EmptyStubF7B8)
func_0026F7C0 stub_empty_22 empty or returns zero (was EmptyStubF7C0)
func_0026F7C8 stub_empty_23 empty or returns zero (was EmptyStubF7C8)
Expand Down
2 changes: 1 addition & 1 deletion include/names/executable.h
Original file line number Diff line number Diff line change
Expand Up @@ -3464,7 +3464,7 @@
#define stub_empty_17 func_0026F790
#define stub_empty_18 func_0026F798
#define stub_empty_19 func_0026F7A0
#define stub_empty_20 func_0026F7B0
#define level_hook_hero_button_hold_timers func_0026F7B0
#define stub_empty_21 func_0026F7B8
#define stub_empty_22 func_0026F7C0
#define stub_empty_23 func_0026F7C8
Expand Down
5 changes: 4 additions & 1 deletion src/game/0026EA00.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ unsigned int stub_empty_19(void)
return 0;
}

void stub_empty_20(void)
/* Empty in the boot: a level hook. Each level's program has its own function at this symbol, the
* hero's double-tap timers (hero_update_button_hold_timers): in USA v2.00 its value is 0x2CB4C0 in
* level 0's program, 0x2EDD80 in level 4's, and that function's place in all 27. */
void level_hook_hero_button_hold_timers(void)
{
}

Expand Down
13 changes: 8 additions & 5 deletions src/game/00286738-g8.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,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_20(void);
extern void level_hook_hero_button_hold_timers(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);
Expand Down Expand Up @@ -591,20 +591,23 @@ void UpdateModalState(void)
}
break;
case 7:
/* The weapon quick select's paused mode. level_hook_hero_button_hold_timers is the level's
* hero_update_button_hold_timers (USA v2.00 level 0: 0x2CB4C0), so each of its phases
* runs the hero's double-tap timers, which the hero's own update does not while it is up. */
switch (g_modal_state.phase) {
case 0:
g_modal_state.cameraActive = 1;
g_modal_state.phase = 1;
if (g_screen_mode_flag != 1)
stub_empty_20();
level_hook_hero_button_hold_timers();
g_modal_clear_flag = 0;
g_modal_counter = ref_00286738_00;
hud_request_letterbox_bars();
menu_set_state_word_three();
break;
case 1:
if (g_screen_mode_flag != 1) {
stub_empty_20();
level_hook_hero_button_hold_timers();
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);
Expand All @@ -629,7 +632,7 @@ void UpdateModalState(void)
break;
case 2:
if (g_screen_mode_flag != 1) {
stub_empty_20();
level_hook_hero_button_hold_timers();
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);
Expand All @@ -653,7 +656,7 @@ void UpdateModalState(void)
break;
case 3:
if (g_screen_mode_flag != 1)
stub_empty_20();
level_hook_hero_button_hold_timers();
hud_clear_flag_b();
hud_clear_flag_a();
{ request_end_slot(0, 0); break; }
Expand Down
13 changes: 8 additions & 5 deletions src/pal/game/00287018-g8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_20(void);
extern void level_hook_hero_button_hold_timers(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);
Expand Down Expand Up @@ -598,20 +598,23 @@ void UpdateModalState_pal(void)
}
break;
case 7:
/* The weapon quick select's paused mode. level_hook_hero_button_hold_timers is the level's
* hero_update_button_hold_timers (USA v2.00 level 0: 0x2CB4C0), so each of its phases
* runs the hero's double-tap timers, which the hero's own update does not while it is up. */
switch (g_modal_state.phase) {
case 0:
g_modal_state.camera_active = 1;
g_modal_state.phase = 1;
if (g_screen_mode_flag != 1)
stub_empty_20();
level_hook_hero_button_hold_timers();
g_modal_clear_flag = 0;
g_modal_counter = ref_00286738_00;
hud_request_letterbox_bars();
menu_set_state_word_three();
break;
case 1:
if (g_screen_mode_flag != 1) {
stub_empty_20();
level_hook_hero_button_hold_timers();
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);
Expand All @@ -636,7 +639,7 @@ void UpdateModalState_pal(void)
break;
case 2:
if (g_screen_mode_flag != 1) {
stub_empty_20();
level_hook_hero_button_hold_timers();
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);
Expand All @@ -660,7 +663,7 @@ void UpdateModalState_pal(void)
break;
case 3:
if (g_screen_mode_flag != 1)
stub_empty_20();
level_hook_hero_button_hold_timers();
hud_clear_flag_b();
hud_clear_flag_a();
{ request_end_slot(0, 0); break; }
Expand Down
13 changes: 8 additions & 5 deletions src/us2/game/00287140-g8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_20(void);
extern void level_hook_hero_button_hold_timers(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);
Expand Down Expand Up @@ -600,20 +600,23 @@ void UpdateModalState_us2(void)
}
break;
case 7:
/* The weapon quick select's paused mode. level_hook_hero_button_hold_timers is the level's
* hero_update_button_hold_timers (USA v2.00 level 0: 0x2CB4C0), so each of its phases
* runs the hero's double-tap timers, which the hero's own update does not while it is up. */
switch (g_modal_state.phase) {
case 0:
g_modal_state.cameraActive = 1;
g_modal_state.phase = 1;
if (g_screen_mode_flag != 1)
stub_empty_20();
level_hook_hero_button_hold_timers();
g_modal_clear_flag = 0;
g_modal_counter = ref_00286738_00;
hud_request_letterbox_bars();
menu_set_state_word_three();
break;
case 1:
if (g_screen_mode_flag != 1) {
stub_empty_20();
level_hook_hero_button_hold_timers();
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);
Expand All @@ -638,7 +641,7 @@ void UpdateModalState_us2(void)
break;
case 2:
if (g_screen_mode_flag != 1) {
stub_empty_20();
level_hook_hero_button_hold_timers();
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);
Expand All @@ -662,7 +665,7 @@ void UpdateModalState_us2(void)
break;
case 3:
if (g_screen_mode_flag != 1)
stub_empty_20();
level_hook_hero_button_hold_timers();
hud_clear_flag_b();
hud_clear_flag_a();
{ request_end_slot(0, 0); break; }
Expand Down