From 88092f145624eaf9a1b6d1d49841101452169de7 Mon Sep 17 00:00:00 2001 From: endernon Date: Tue, 31 Dec 2024 15:40:33 +0000 Subject: [PATCH] some refactoring --- src/main.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index d1ae77d..067f7a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,7 +92,7 @@ fn main() { Ok(loaded_idkeys) => { match load_shinystats(executable_path) { Ok(loaded_shinystats) => { - if let Err(e) = cook_0(debug_mode, loaded_config, loaded_idkeys, loaded_shinystats) { + if let Err(e) = cook(debug_mode, loaded_config, loaded_idkeys, loaded_shinystats) { println!("{}", e); } }, @@ -106,11 +106,7 @@ fn main() { } } } -// 0: Gear -fn cook_0(mut debug_mode: bool, json_config: Jsonconfig, idsmap: HashMap, json_shiny: Vec) -> Result<(), Errorfr> { - // load configs - // println!("{:?}",idsmap.get("airDamage")); - +fn cook(mut debug_mode: bool, json_config: Jsonconfig, idsmap: HashMap, json_shiny: Vec) -> Result<(), Errorfr> { // create necessary variables let mut out = Vec::new(); let ver = TransformVersion::Version1; @@ -128,7 +124,7 @@ fn cook_0(mut debug_mode: bool, json_config: Jsonconfig, idsmap: HashMap