@@ -159,6 +159,13 @@ fn main() -> ExitCode {
159
159
let mut font_path = format ! ( "assets/vanilla/{}/{}-{}-fonts/msgothic_0.dat" , & chapter, & system, & unity) ;
160
160
if ! Path :: new ( & font_path) . exists ( ) {
161
161
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) ;
162
169
}
163
170
164
171
let unity_ver_str = match arc_number {
@@ -184,6 +191,13 @@ fn main() -> ExitCode {
184
191
let mut font_path = format ! ( "assets/vanilla/{}/{}-{}-fonts/msgothic_2.dat" , & chapter, & system, & unity) ;
185
192
if ! Path :: new ( & font_path) . exists ( ) {
186
193
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) ;
187
201
}
188
202
189
203
let status = Command :: new ( "python" )
0 commit comments