From dca58928c660f2111dd011adc412be0f07c2df98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Thu, 15 Nov 2018 18:17:51 +0100 Subject: [PATCH] Fix tatarigotoshi mg UI --- src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index a2de597..0da02b8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,9 +40,10 @@ fn main() { process::exit(2); } + let distributor = if platform == "win-mg" || platform == "mac-mg" { "mg" } else { "steam" }; let arc_number = chapters.get(chapter).unwrap(); let arc_type = if arc_number <= &4 { "question_arcs" } else { "answer_arcs" }; - let assets = format!("assets/vanilla/{}/{}/sharedassets0.assets", chapter, platform); + let assets = format!("assets/vanilla/{}/{}/{}/sharedassets0.assets", chapter, distributor, platform); let directory_assets = "output/assets"; let directory_data = format!("output/HigurashiEp{:02}_Data", arc_number); let emip = format!("{}/{}-{}.emip", &directory_data, &chapter, &platform); @@ -88,7 +89,7 @@ fn main() { .arg("scripts/TMPAssetConverter.py") .arg("assets/fonts/msgothic_0 SDF Atlas_Texture2D.dat") .arg("assets/fonts/msgothic_0 SDF_TextMeshProFont.dat") - .arg(format!("assets/vanilla/{}/msgothic_0.dat", &chapter)) + .arg(format!("assets/vanilla/{}/{}/msgothic_0.dat", &chapter, distributor)) .arg(&directory_assets) .status() .expect("failed to execute TMPAssetConverter.py"); @@ -100,7 +101,7 @@ fn main() { .arg("scripts/TMPAssetConverter.py") .arg("assets/fonts/msgothic_2 SDF Atlas_Texture2D.dat") .arg("assets/fonts/msgothic_2 SDF_TextMeshProFont.dat") - .arg(format!("assets/vanilla/{}/msgothic_2.dat", &chapter)) + .arg(format!("assets/vanilla/{}/{}/msgothic_2.dat", &chapter, distributor)) .arg(&directory_assets) .status() .expect("failed to execute TMPAssetConverter.py"); @@ -110,7 +111,7 @@ fn main() { println!(); // 4. copy assets - copy_files(format!("assets/vanilla/{}/{}", chapter, platform).as_ref(), &directory_data); + copy_files(format!("assets/vanilla/{}/{}/{}", chapter, distributor, platform).as_ref(), &directory_data); println!();