From 3e3f6922c0f246da831fca7ab1f1d10d1d27eaaf Mon Sep 17 00:00:00 2001 From: spycrab Date: Tue, 26 Feb 2019 19:50:26 +0100 Subject: [PATCH] Common/FileUtil: Fix GetExePath() cutting off the bundle name --- Source/Core/Common/FileUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index a631aa3edc..a5d5072929 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -686,7 +686,8 @@ std::string GetExePath() dolphin_path = TStrToUTF8(dolphin_exe_path); #elif defined(__APPLE__) dolphin_path = GetBundleDirectory(); - dolphin_path = dolphin_path.substr(0, dolphin_path.find_last_of("Dolphin.app/Contents/MacOS")); + dolphin_path = + dolphin_path.substr(0, dolphin_path.find_last_of("Dolphin.app/Contents/MacOS") + 1); #else char dolphin_exe_path[PATH_MAX]; ssize_t len = ::readlink("/proc/self/exe", dolphin_exe_path, sizeof(dolphin_exe_path));