From cef6871ac9f6c27af4465d9d11745ea462bf119e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Sun, 26 May 2019 21:10:20 +0200 Subject: [PATCH] Remove unnecessary files from the archives --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 15b0aa3..421d381 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,7 +87,7 @@ fn main() { println!(); // 3. fonts - let mut font_path = format!("assets/vanilla/{}/{}-{}/msgothic_0.dat", &chapter, &system, &unity); + let mut font_path = format!("assets/vanilla/{}/{}-{}-fonts/msgothic_0.dat", &chapter, &system, &unity); if ! Path::new(&font_path).exists() { font_path = format!("assets/vanilla/{}/msgothic_0.dat", &chapter); } @@ -104,7 +104,7 @@ fn main() { assert!(status.success()); - let mut font_path = format!("assets/vanilla/{}/{}-{}/msgothic_2.dat", &chapter, &system, &unity); + let mut font_path = format!("assets/vanilla/{}/{}-{}-fonts/msgothic_2.dat", &chapter, &system, &unity); if ! Path::new(&font_path).exists() { font_path = format!("assets/vanilla/{}/msgothic_2.dat", &chapter); } @@ -153,9 +153,10 @@ fn main() { assert!(status.success()); fs::remove_file(format!("{}/sharedassets0.assets.bak0000", &directory_data)).expect("Failed to remove file"); + fs::remove_file(format!("{}/sharedassets0.assets.resS", &directory_data)).expect("Failed to remove file"); fs::remove_file(&emip).expect("Failed to remove file"); - // 7. pack with 7xip + // 7. pack with 7zip let status = Command::new("7za") .current_dir("output") .arg("a")