Print out the font source files when using TMPAssetConverter.py

This commit is contained in:
drojf
2024-05-16 22:01:01 +10:00
parent 6210077d71
commit 4444a08443

View File

@@ -159,6 +159,13 @@ fn main() -> ExitCode {
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);
println!("Using shared msgothic_0 font for {} located at {}", &chapter, &font_path);
} else {
println!("Using config specific ({}-{}) msgothic_0 font for {} located at {}", &system, &unity, &chapter, &font_path);
}
if !Path::new(&font_path).exists() {
panic!("Couldn't find msgothic_0 font for chapter {} with config {}-{} at path [{}]", &chapter, &system, &unity, &font_path);
}
let unity_ver_str = match arc_number {
@@ -184,6 +191,13 @@ fn main() -> ExitCode {
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);
println!("Using shared msgothic_2 font for {} located at {}", &chapter, &font_path);
} else {
println!("Using config specific ({}-{}) msgothic_2 font for {} located at {}", &system, &unity, &chapter, &font_path);
}
if !Path::new(&font_path).exists() {
panic!("Couldn't find msgothic_2 font for chapter {} with config {}-{} at path [{}]", &chapter, &system, &unity, &font_path);
}
let status = Command::new("python")