From 246b515a869ebe4a8d6c12773db85724e8156f5d Mon Sep 17 00:00:00 2001 From: B3n30 Date: Sun, 11 Aug 2019 12:28:07 +0200 Subject: [PATCH] citra_qt: on osx chdir to bundle dir to allow detection of user folder --- src/yuzu/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index a7c656fdb..693bb1fcf 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -6,6 +6,7 @@ #include #include #include +#include // VFS includes must be before glad as they will conflict with Windows file api, which uses defines. #include "applets/error.h" @@ -2168,6 +2169,11 @@ int main(int argc, char* argv[]) { QCoreApplication::setOrganizationName(QStringLiteral("yuzu team")); QCoreApplication::setApplicationName(QStringLiteral("yuzu")); +#ifdef __APPLE__ + std::string bin_path = FileUtil::GetBundleDirectory() + DIR_SEP + ".."; + chdir(bin_path.c_str()); +#endif + // Enables the core to make the qt created contexts current on std::threads QCoreApplication::setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity); QApplication app(argc, argv);