From 91c717376f70d0a552a20556322a2a2b7bd3db5e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 4 May 2022 22:24:52 +1000 Subject: [PATCH] Qt: Use app bundle resources directory on Mac --- pcsx2-qt/QtHost.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcsx2-qt/QtHost.cpp b/pcsx2-qt/QtHost.cpp index 5a614a6ec9..d6b5664422 100644 --- a/pcsx2-qt/QtHost.cpp +++ b/pcsx2-qt/QtHost.cpp @@ -140,8 +140,13 @@ bool QtHost::ShouldUsePortableMode() void QtHost::SetResourcesDirectory() { +#ifndef __APPLE__ // On Windows/Linux, these are in the binary directory. EmuFolders::Resources = EmuFolders::AppRoot.Combine(wxDirName(L"resources")); +#else + // On macOS, this is in the bundle resources directory. + EmuFolders::Resources = EmuFolders::AppRoot.Combine(wxDirName("../Resources")); +#endif } void QtHost::SetDataDirectory()