diff --git a/src/jsondl.rs b/src/jsondl.rs index df1414c..f47917d 100644 --- a/src/jsondl.rs +++ b/src/jsondl.rs @@ -16,11 +16,8 @@ pub fn load_shinystats(executable_path: &str) -> Result, Errorf } pub fn load_gear(executable_path: &str) -> Result, Errorfr> { - // shiny_stats.json - let a: Result, Errorfr> = - serde_json5::from_reader(&mut fs::File::open(executable_path.to_owned() + "/data/gear.json").map_err(|_| Errorfr::GearJsonMissing)?).map_err(|_| Errorfr::GearJsonCorrupt); - - a + // gear.json (ONLY FOR PERFECT ITEM FUNCTION GEN) + serde_json5::from_reader(&mut fs::File::open(executable_path.to_owned() + "/data/gear.json").map_err(|_| Errorfr::GearJsonMissing)?).map_err(|_| Errorfr::GearJsonCorrupt) } pub fn dl_json_fr(dlvalue: &String, executable_path: &str) { let jsons = DownloadJsons::from(dlvalue.clone());