Qt: Use app bundle resources directory on Mac

This commit is contained in:
Connor McLaughlin 2022-05-04 22:24:52 +10:00 committed by refractionpcsx2
parent 344c918b65
commit 91c717376f
1 changed files with 5 additions and 0 deletions

View File

@ -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()