1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-14 18:36:11 +00:00

No Star KOs (#391)

* Turn off Star KOs

* Remove Star KO Debug
This commit is contained in:
GradualSyrup 2022-10-16 18:34:05 -05:00 committed by GitHub
parent 4314251664
commit 7f3a8e8674
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -460,6 +460,19 @@ pub unsafe fn handle_effect(
)
}
static CAN_FUTTOBI_BACK_OFFSET: usize = 0x0260f950; // can_futtobi_back, checks if stage allows for star KOs
#[skyline::hook(offset = CAN_FUTTOBI_BACK_OFFSET)]
pub unsafe fn handle_star_ko(
my_long_ptr: &mut u64,
) -> bool {
let ori = original!()(my_long_ptr);
if !is_training_mode() {
return ori;
} else {
return false;
}
}
#[allow(improper_ctypes)]
extern "C" {
fn add_nn_hid_hook(callback: fn(*mut NpadGcState, *const u32));
@ -540,6 +553,8 @@ pub fn training_mods() {
handle_se,
// Death GFX
handle_effect,
// Star KO turn off
handle_star_ko,
);
combo::init();