Fix tatarigotoshi mg UI
This commit is contained in:
@@ -40,9 +40,10 @@ fn main() {
|
|||||||
process::exit(2);
|
process::exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let distributor = if platform == "win-mg" || platform == "mac-mg" { "mg" } else { "steam" };
|
||||||
let arc_number = chapters.get(chapter).unwrap();
|
let arc_number = chapters.get(chapter).unwrap();
|
||||||
let arc_type = if arc_number <= &4 { "question_arcs" } else { "answer_arcs" };
|
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_assets = "output/assets";
|
||||||
let directory_data = format!("output/HigurashiEp{:02}_Data", arc_number);
|
let directory_data = format!("output/HigurashiEp{:02}_Data", arc_number);
|
||||||
let emip = format!("{}/{}-{}.emip", &directory_data, &chapter, &platform);
|
let emip = format!("{}/{}-{}.emip", &directory_data, &chapter, &platform);
|
||||||
@@ -88,7 +89,7 @@ fn main() {
|
|||||||
.arg("scripts/TMPAssetConverter.py")
|
.arg("scripts/TMPAssetConverter.py")
|
||||||
.arg("assets/fonts/msgothic_0 SDF Atlas_Texture2D.dat")
|
.arg("assets/fonts/msgothic_0 SDF Atlas_Texture2D.dat")
|
||||||
.arg("assets/fonts/msgothic_0 SDF_TextMeshProFont.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)
|
.arg(&directory_assets)
|
||||||
.status()
|
.status()
|
||||||
.expect("failed to execute TMPAssetConverter.py");
|
.expect("failed to execute TMPAssetConverter.py");
|
||||||
@@ -100,7 +101,7 @@ fn main() {
|
|||||||
.arg("scripts/TMPAssetConverter.py")
|
.arg("scripts/TMPAssetConverter.py")
|
||||||
.arg("assets/fonts/msgothic_2 SDF Atlas_Texture2D.dat")
|
.arg("assets/fonts/msgothic_2 SDF Atlas_Texture2D.dat")
|
||||||
.arg("assets/fonts/msgothic_2 SDF_TextMeshProFont.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)
|
.arg(&directory_assets)
|
||||||
.status()
|
.status()
|
||||||
.expect("failed to execute TMPAssetConverter.py");
|
.expect("failed to execute TMPAssetConverter.py");
|
||||||
@@ -110,7 +111,7 @@ fn main() {
|
|||||||
println!();
|
println!();
|
||||||
|
|
||||||
// 4. copy assets
|
// 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!();
|
println!();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user