Skip to content

Commit 4444a08

Browse files
committed
Print out the font source files when using TMPAssetConverter.py
1 parent 6210077 commit 4444a08

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/main.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ fn main() -> ExitCode {
159159
let mut font_path = format!("assets/vanilla/{}/{}-{}-fonts/msgothic_0.dat", &chapter, &system, &unity);
160160
if ! Path::new(&font_path).exists() {
161161
font_path = format!("assets/vanilla/{}/msgothic_0.dat", &chapter);
162+
println!("Using shared msgothic_0 font for {} located at {}", &chapter, &font_path);
163+
} else {
164+
println!("Using config specific ({}-{}) msgothic_0 font for {} located at {}", &system, &unity, &chapter, &font_path);
165+
}
166+
167+
if !Path::new(&font_path).exists() {
168+
panic!("Couldn't find msgothic_0 font for chapter {} with config {}-{} at path [{}]", &chapter, &system, &unity, &font_path);
162169
}
163170

164171
let unity_ver_str = match arc_number {
@@ -184,6 +191,13 @@ fn main() -> ExitCode {
184191
let mut font_path = format!("assets/vanilla/{}/{}-{}-fonts/msgothic_2.dat", &chapter, &system, &unity);
185192
if ! Path::new(&font_path).exists() {
186193
font_path = format!("assets/vanilla/{}/msgothic_2.dat", &chapter);
194+
println!("Using shared msgothic_2 font for {} located at {}", &chapter, &font_path);
195+
} else {
196+
println!("Using config specific ({}-{}) msgothic_2 font for {} located at {}", &system, &unity, &chapter, &font_path);
197+
}
198+
199+
if !Path::new(&font_path).exists() {
200+
panic!("Couldn't find msgothic_2 font for chapter {} with config {}-{} at path [{}]", &chapter, &system, &unity, &font_path);
187201
}
188202

189203
let status = Command::new("python")

0 commit comments

Comments
 (0)