From 7b7ab0c1cbad9f62cd2e493337ea4f58e016c004 Mon Sep 17 00:00:00 2001 From: jugeeya Date: Sun, 17 May 2020 11:23:30 -0700 Subject: [PATCH] remove testing code --- Cargo.toml | 1 + src/lib.rs | 13 ------------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9c7010e..fa26978 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ crate-type = ["cdylib"] [dependencies] skyline = { git = "https://github.com/ultimate-research/skyline-rs.git" } skyline_smash = { git = "https://github.com/ultimate-research/skyline-smash.git" } +# skyline = { path = "../../../../src/skyline-rs" } # skyline_smash = { path = "../../../../src/skyline-smash" } [profile.dev] diff --git a/src/lib.rs b/src/lib.rs index 50bb887..140310b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,24 +24,11 @@ fn nro_main(nro: &NroInfo<'_>) { } } -#[skyline::hook(replace = smash::app::lua_bind::FighterManager::get_fighter_information)] -pub unsafe fn handle_get_fighter_information( - fighter_manager: &mut smash::app::FighterManager, - entry_id: smash::app::FighterEntryID, -) -> u64 { - println!("{:#?}", &fighter_manager as *const _); - println!("[Training Modpack] FighterManager address: 0x{:x}", FIGHTER_MANAGER_ADDR); - println!("[Training Modpack] FighterManager deref: 0x{:x}", *(FIGHTER_MANAGER_ADDR as *mut u64)); - - original!()(fighter_manager, entry_id) -} - #[skyline::main(name = "training_modpack")] pub fn main() { println!("[Training Modpack] Initialized."); hitbox_visualizer::hitbox_visualization(); training::training_mods(); - skyline::install_hook!(handle_get_fighter_information); nro::add_hook(nro_main).unwrap(); unsafe {