MacOS fixes

This commit is contained in:
rainmakerv2 2025-02-21 18:48:30 +08:00
parent 50f0a9cf9d
commit 6dbc2b4711
2 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,6 @@ TrophyUI::TrophyUI(const std::filesystem::path& trophyIconPath, const std::strin
const char* AppDir = getenv("APPDIR"); const char* AppDir = getenv("APPDIR");
ResourceDir = std::filesystem::path(AppDir); ResourceDir = std::filesystem::path(AppDir);
#elif defined(__APPLE__) #elif defined(__APPLE__)
// for testing on Mac QT
ResourceDir = std::filesystem::current_path().parent_path() / "Resources"; ResourceDir = std::filesystem::current_path().parent_path() / "Resources";
#endif #endif
} }

View File

@ -124,7 +124,7 @@ void TrophyViewer::PopulateTrophyWidget(QString title) {
const char* AppDir = getenv("APPDIR"); const char* AppDir = getenv("APPDIR");
trophyTypePath = std::filesystem::path(AppDir); trophyTypePath = std::filesystem::path(AppDir);
#elif defined(__APPLE__) #elif defined(__APPLE__)
trophyTypePath = Common::GetBundleParentDirectory().parent_path() / "Resources"; trophyTypePath = std::filesystem::current_path().parent_path() / "Resources";
#endif #endif
} }