From 6dbc2b4711bc37aaa0b0b71eeb50a17b50eaacf0 Mon Sep 17 00:00:00 2001 From: rainmakerv2 <30595646+jpau02@users.noreply.github.com> Date: Fri, 21 Feb 2025 18:48:30 +0800 Subject: [PATCH] MacOS fixes --- src/core/libraries/np_trophy/trophy_ui.cpp | 1 - src/qt_gui/trophy_viewer.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/libraries/np_trophy/trophy_ui.cpp b/src/core/libraries/np_trophy/trophy_ui.cpp index 1bf4069a8..7c0f1ef7e 100644 --- a/src/core/libraries/np_trophy/trophy_ui.cpp +++ b/src/core/libraries/np_trophy/trophy_ui.cpp @@ -38,7 +38,6 @@ TrophyUI::TrophyUI(const std::filesystem::path& trophyIconPath, const std::strin const char* AppDir = getenv("APPDIR"); ResourceDir = std::filesystem::path(AppDir); #elif defined(__APPLE__) - // for testing on Mac QT ResourceDir = std::filesystem::current_path().parent_path() / "Resources"; #endif } diff --git a/src/qt_gui/trophy_viewer.cpp b/src/qt_gui/trophy_viewer.cpp index 0b9a92d36..e33e815be 100644 --- a/src/qt_gui/trophy_viewer.cpp +++ b/src/qt_gui/trophy_viewer.cpp @@ -124,7 +124,7 @@ void TrophyViewer::PopulateTrophyWidget(QString title) { const char* AppDir = getenv("APPDIR"); trophyTypePath = std::filesystem::path(AppDir); #elif defined(__APPLE__) - trophyTypePath = Common::GetBundleParentDirectory().parent_path() / "Resources"; + trophyTypePath = std::filesystem::current_path().parent_path() / "Resources"; #endif }