mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-10 19:51:32 -06:00
Handle missing system font by clearing font bytes and logging an error
This commit is contained in:
parent
9287fb31bf
commit
0b9f941e63
@ -302,8 +302,10 @@ static void LoadSystemFontBlob() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
const auto fallback = std::filesystem::current_path() / kSystemFontFileName;
|
||||
LoadFontFromPath(fallback);
|
||||
g_system_font_bytes.clear();
|
||||
g_system_font_available = false;
|
||||
LOG_ERROR(Lib_Font, "SystemFace: configured font '{}' missing; no fallback available",
|
||||
configured_path.string());
|
||||
}
|
||||
|
||||
static bool EnsureSystemFontBlob() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user