From e711b6c44a9cc3bb5ced42dec773bc8ba1961c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Fri, 8 Apr 2022 10:20:01 +0200 Subject: [PATCH] Fix ROM location on macOS --- src/qt/qt_platform.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/qt/qt_platform.cpp b/src/qt/qt_platform.cpp index af3d2b9e8..607f4fd76 100644 --- a/src/qt/qt_platform.cpp +++ b/src/qt/qt_platform.cpp @@ -520,11 +520,6 @@ size_t c16stombs(char dst[], const uint16_t src[], int len) #define LIB_NAME_FREETYPE "libfreetype" #define MOUSE_CAPTURE_KEYSEQ "CTRL-END" #endif -#ifdef Q_OS_MACOS -#define ROMDIR "~/Library/Application Support/net.86box.86box/roms" -#else -#define ROMDIR "roms" -#endif QMap ProgSettings::translatedstrings; @@ -602,6 +597,10 @@ plat_init_rom_paths() #endif for (auto& path : paths) { +#ifdef __APPLE__ + rom_add_path(QDir(path).filePath("net.86Box.86Box/roms").toUtf8().constData()); +#else rom_add_path(QDir(path).filePath("86Box/roms").toUtf8().constData()); +#endif } }