1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-24 10:54:16 +00:00

remove testing code

This commit is contained in:
jugeeya 2020-05-17 11:23:30 -07:00
parent 123bb920b7
commit 7b7ab0c1cb
2 changed files with 1 additions and 13 deletions

View file

@ -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]

View file

@ -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 {