mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-28 04:44:06 +00:00
Format Rust code using rustfmt
This commit is contained in:
parent
ff6569b93b
commit
a67b7af6ff
1 changed files with 6 additions and 3 deletions
|
@ -282,14 +282,17 @@ pub unsafe fn handle_set_dead_rumble(lua_state: u64) -> u64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[skyline::hook(replace = CameraModule::req_quake)]
|
#[skyline::hook(replace = CameraModule::req_quake)]
|
||||||
pub unsafe fn handle_req_quake(module_accessor: &mut app::BattleObjectModuleAccessor, my_int: i32) -> u64 {
|
pub unsafe fn handle_req_quake(
|
||||||
|
module_accessor: &mut app::BattleObjectModuleAccessor,
|
||||||
|
my_int: i32,
|
||||||
|
) -> u64 {
|
||||||
if !is_training_mode() {
|
if !is_training_mode() {
|
||||||
return original!()(module_accessor,my_int);
|
return original!()(module_accessor, my_int);
|
||||||
}
|
}
|
||||||
if save_states::is_killing() {
|
if save_states::is_killing() {
|
||||||
return original!()(module_accessor, *CAMERA_QUAKE_KIND_NONE);
|
return original!()(module_accessor, *CAMERA_QUAKE_KIND_NONE);
|
||||||
}
|
}
|
||||||
original!()(module_accessor,my_int)
|
original!()(module_accessor, my_int)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub static mut COMMON_PARAMS: *mut CommonParams = 0 as *mut _;
|
pub static mut COMMON_PARAMS: *mut CommonParams = 0 as *mut _;
|
||||||
|
|
Loading…
Reference in a new issue