mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-15 23:36:41 +00:00
fix loading order
This commit is contained in:
parent
acad65d233
commit
2d2e712eab
|
@ -1796,12 +1796,11 @@ impl EngineConstants {
|
|||
|
||||
for language in Language::values() {
|
||||
// Only Switch 1.3+ data contains an entirely valid JP font
|
||||
let font =
|
||||
if language == Language::Japanese && filesystem::exists_find(ctx, &self.base_paths, "/credit_jp.tsc") {
|
||||
FontData::new("csfontjp.fnt".to_owned(), 0.5, 0.0)
|
||||
} else {
|
||||
language.font()
|
||||
};
|
||||
let font = if language == Language::Japanese && filesystem::exists(ctx, "/base/credit_jp.tsc") {
|
||||
FontData::new("csfontjp.fnt".to_owned(), 0.5, 0.0)
|
||||
} else {
|
||||
language.font()
|
||||
};
|
||||
self.locales.insert(language.to_string(), Locale::new(ctx, language.to_language_code(), font));
|
||||
log::info!("Loaded locale {} ({}).", language.to_string(), language.to_language_code());
|
||||
}
|
||||
|
|
|
@ -317,11 +317,11 @@ impl SharedGameState {
|
|||
}
|
||||
}
|
||||
|
||||
constants.load_locales(ctx)?;
|
||||
|
||||
let season = Season::current();
|
||||
constants.rebuild_path_list(None, season, &settings);
|
||||
|
||||
constants.load_locales(ctx)?;
|
||||
|
||||
let active_locale = constants.locales.get(&settings.locale.to_string()).unwrap();
|
||||
|
||||
if constants.is_cs_plus {
|
||||
|
|
Loading…
Reference in a new issue