1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-01-19 17:00:15 +00:00

Clean up hook installations by switching to install_hooks

This commit is contained in:
jam1garner 2020-05-15 20:24:35 -04:00
parent cd3a6d938b
commit 6eb99546f9
2 changed files with 23 additions and 19 deletions

View file

@ -410,7 +410,9 @@ pub unsafe fn handle_set_rebound(
pub fn hitbox_visualization() {
println!("Applying hitbox visualization mods.");
skyline::install_hook!(handle_attack);
skyline::install_hook!(handle_catch);
skyline::install_hook!(handle_set_rebound);
skyline::install_hooks!(
handle_attack,
handle_catch,
handle_set_rebound
);
}

View file

@ -194,20 +194,26 @@ pub fn training_mods() {
println!("Lookup symbol output: {:#?}", fighter_manager_addr);
}
// Mash airdodge/jump
skyline::install_hook!(handle_get_command_flag_cat);
skyline::install_hooks!(
// Mash airdodge/jump
handle_get_command_flag_cat,
// Set DI
skyline::install_hook!(handle_get_float);
// Set DI
handle_get_float,
// Hold/Infinite shield
skyline::install_hook!(handle_check_button_on);
skyline::install_hook!(handle_check_button_off);
skyline::install_hook!(handle_get_param_float);
// Mash attack
skyline::install_hook!(handle_get_attack_air_kind);
// Hold/Infinite shield
handle_check_button_on,
handle_check_button_off,
handle_get_param_float,
// Mash attack
handle_get_attack_air_kind,
// Tech options
handle_init_settings,
handle_change_motion,
);
// // Input recorder
// SaltySD_function_replace_sym(
@ -216,8 +222,4 @@ pub fn training_mods() {
// SaltySD_function_replace_sym(
// "_ZN3app8lua_bind31ControlModule__get_stick_y_implEPNS_26BattleObjectModuleAccessorE",
// (u64)&ControlModule::get_stick_y_replace);
// Tech options
skyline::install_hook!(handle_init_settings);
skyline::install_hook!(handle_change_motion);
}