Browse Source

fix build v3

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3016/head
crueter 1 month ago
parent
commit
c9e1fbd1bc
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 4
      src/qt_common/CMakeLists.txt
  2. 12
      src/qt_common/qt_common.cpp

4
src/qt_common/CMakeLists.txt

@ -83,8 +83,10 @@ add_subdirectory(externals)
# pass targets
find_package(frozen)
target_link_libraries(qt_common PRIVATE core Qt6::Core Qt6::Concurrent SimpleIni::SimpleIni QuaZip::QuaZip)
target_link_libraries(qt_common PRIVATE core input_common)
target_link_libraries(qt_common PRIVATE gamemode::headers)
target_link_libraries(qt_common PRIVATE Qt6::Core Qt6::Concurrent SimpleIni::SimpleIni QuaZip::QuaZip)
target_link_libraries(qt_common PUBLIC frozen::frozen-headers Vulkan::UtilityHeaders)
if (NOT APPLE AND ENABLE_OPENGL)

12
src/qt_common/qt_common.cpp

@ -179,18 +179,6 @@ static QString PrettyProductName() {
return QSysInfo::prettyProductName();
}
#ifdef _WIN32
static void OverrideWindowsFont() {
// Qt5 chooses these fonts on Windows and they have fairly ugly alphanumeric/cyrillic characters
// Asking to use "MS Shell Dlg 2" gives better other chars while leaving the Chinese Characters.
const QString startup_font = QApplication::font().family();
const QStringList ugly_fonts = {QStringLiteral("SimSun"), QStringLiteral("PMingLiU")};
if (ugly_fonts.contains(startup_font)) {
QApplication::setFont(QFont(QStringLiteral("MS Shell Dlg 2"), 9, QFont::Normal));
}
}
#endif
static void RemoveCachedContents() {
const auto cache_dir = Common::FS::GetEdenPath(Common::FS::EdenPath::CacheDir);
const auto offline_fonts = cache_dir / "fonts";

Loading…
Cancel
Save