From 42d0654eec7dbaf71c60f1b8af69cd708f98a400 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/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