Skip to content

Commit

Permalink
Print out the font source files when using TMPAssetConverter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed May 16, 2024
1 parent 6210077 commit 4444a08
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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")
Expand Down

0 comments on commit 4444a08

Please sign in to comment.