1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-01-20 01:10:13 +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() { pub fn hitbox_visualization() {
println!("Applying hitbox visualization mods."); println!("Applying hitbox visualization mods.");
skyline::install_hook!(handle_attack); skyline::install_hooks!(
skyline::install_hook!(handle_catch); handle_attack,
skyline::install_hook!(handle_set_rebound); handle_catch,
handle_set_rebound
);
} }

View file

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