Skip to content

Commit

Permalink
Common/FileUtil: Fix GetExePath() cutting off the bundle name
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed Feb 26, 2019
1 parent 19f4772 commit 3e3f692
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Common/FileUtil.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit 3e3f692

Please sign in to comment.