1
0
Fork 0
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:
github-actions[bot] 2022-01-03 07:44:52 +00:00 committed by GitHub
parent ff6569b93b
commit a67b7af6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 _;