mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-23 06:46:11 +00:00
remove testing code
This commit is contained in:
parent
123bb920b7
commit
7b7ab0c1cb
2 changed files with 1 additions and 13 deletions
|
@ -10,6 +10,7 @@ crate-type = ["cdylib"]
|
||||||
[dependencies]
|
[dependencies]
|
||||||
skyline = { git = "https://github.com/ultimate-research/skyline-rs.git" }
|
skyline = { git = "https://github.com/ultimate-research/skyline-rs.git" }
|
||||||
skyline_smash = { git = "https://github.com/ultimate-research/skyline-smash.git" }
|
skyline_smash = { git = "https://github.com/ultimate-research/skyline-smash.git" }
|
||||||
|
# skyline = { path = "../../../../src/skyline-rs" }
|
||||||
# skyline_smash = { path = "../../../../src/skyline-smash" }
|
# skyline_smash = { path = "../../../../src/skyline-smash" }
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
|
|
13
src/lib.rs
13
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")]
|
#[skyline::main(name = "training_modpack")]
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
println!("[Training Modpack] Initialized.");
|
println!("[Training Modpack] Initialized.");
|
||||||
hitbox_visualizer::hitbox_visualization();
|
hitbox_visualizer::hitbox_visualization();
|
||||||
training::training_mods();
|
training::training_mods();
|
||||||
skyline::install_hook!(handle_get_fighter_information);
|
|
||||||
nro::add_hook(nro_main).unwrap();
|
nro::add_hook(nro_main).unwrap();
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Add table
Reference in a new issue