mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-14 02:16:10 +00:00
check_hit_stop_delay_command is not in the common NRO
This commit is contained in:
parent
4b99ca5b52
commit
1db42feab8
3 changed files with 4 additions and 3 deletions
|
@ -22,7 +22,6 @@ fn nro_main(nro: &NroInfo<'_>) {
|
|||
training::shield::handle_sub_guard_cont,
|
||||
training::directional_influence::handle_correct_damage_vector_common,
|
||||
training::sdi::process_hit_stop_delay,
|
||||
training::sdi::check_hit_stop_delay_command,
|
||||
training::tech::handle_change_status
|
||||
);
|
||||
}
|
||||
|
|
|
@ -261,6 +261,8 @@ pub fn training_mods() {
|
|||
get_stick_y,
|
||||
// Combo
|
||||
handle_is_enable_transition_term,
|
||||
// SDI
|
||||
crate::training::sdi::check_hit_stop_delay_command,
|
||||
);
|
||||
|
||||
combo::init();
|
||||
|
|
|
@ -81,7 +81,7 @@ fn mod_sdi_direction(fighter: &mut L2CFighterCommon) -> Option<Vector2f> {
|
|||
#[skyline::hook(replace = FighterControlModuleImpl::check_hit_stop_delay_command)]
|
||||
pub unsafe fn check_hit_stop_delay_command(
|
||||
module_accessor: &mut app::BattleObjectModuleAccessor,
|
||||
arg1: Vector2f,
|
||||
arg1: *mut Vector2f,
|
||||
) -> u64 {
|
||||
let ori = original!()(module_accessor, arg1);
|
||||
let res = mod_check_hit_stop_delay_command(module_accessor, arg1).unwrap_or_else(|| ori);
|
||||
|
@ -94,7 +94,7 @@ pub unsafe fn check_hit_stop_delay_command(
|
|||
*/
|
||||
fn mod_check_hit_stop_delay_command(
|
||||
module_accessor: &mut app::BattleObjectModuleAccessor,
|
||||
_arg1: Vector2f,
|
||||
_arg1: *mut Vector2f,
|
||||
) -> Option<u64> {
|
||||
unsafe {
|
||||
if !is_training_mode() {
|
||||
|
|
Loading…
Add table
Reference in a new issue