1
0
mirror of synced 2025-02-17 18:59:21 +01:00

impr: Force disable unicode support when the NoGPU version is used

This commit is contained in:
WerWolv 2023-06-22 17:56:09 +02:00
parent ae06954771
commit b019283a2f

View File

@ -302,7 +302,13 @@ namespace hex::init {
}
bool loadFonts() {
return loadFontsImpl(ContentRegistry::Settings::read("hex.builtin.setting.general", "hex.builtin.setting.general.enable_unicode", true));
// Check if unicode support is enabled in the settings and that the user doesn't use the No GPU version on Windows
// The Mesa3D software renderer on Windows identifies itself as "VMware, Inc."
bool shouldLoadUnicode =
ContentRegistry::Settings::read("hex.builtin.setting.general", "hex.builtin.setting.general.enable_unicode", true) &&
ImHexApi::System::getGPUVendor() != "VMware, Inc.";
return loadFontsImpl(shouldLoadUnicode);
}
bool deleteSharedData() {