From 42d0654eec7dbaf71c60f1b8af69cd708f98a400 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Sun, 11 Aug 2019 12:28:07 +0200 Subject: [PATCH 1/2] citra_qt: on osx chdir to bundle dir to allow detection of user folder --- src/citra_qt/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 055627d47..95774faa4 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -1887,6 +1887,11 @@ int main(int argc, char* argv[]) { QCoreApplication::setOrganizationName("Citra team"); QCoreApplication::setApplicationName("Citra"); +#ifdef __APPLE__ + std::string bin_path = FileUtil::GetBundleDirectory() + DIR_SEP + ".."; + chdir(bin_path.c_str()); +#endif + QApplication app(argc, argv); // Qt changes the locale and causes issues in float conversion using std::to_string() when From 3fb622e84fbd66f031077ae940244306e685b6a5 Mon Sep 17 00:00:00 2001 From: B3n30 Date: Sun, 11 Aug 2019 13:04:51 +0200 Subject: [PATCH 2/2] citrq_qt:main.cpp include unistd.h --- src/citra_qt/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 95774faa4..4e745e3fc 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include "citra_qt/aboutdialog.h" #include "citra_qt/applets/mii_selector.h" #include "citra_qt/applets/swkbd.h"