mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
AutoUpdate: Use the embedded Updater on macOS
This commit is contained in:
@ -49,15 +49,13 @@ const char UPDATER_LOG_FILE[] = "Updater.log";
|
|||||||
|
|
||||||
std::string UpdaterPath(bool relocated = false)
|
std::string UpdaterPath(bool relocated = false)
|
||||||
{
|
{
|
||||||
std::string path(File::GetExeDirectory() + DIR_SEP);
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
if (relocated)
|
if (relocated)
|
||||||
path += ".Dolphin Updater.2.app";
|
return File::GetExeDirectory() + DIR_SEP + ".Dolphin Updater.2.app";
|
||||||
else
|
else
|
||||||
path += "Dolphin Updater.app";
|
return File::GetBundleDirectory() + DIR_SEP + "Contents/Helpers/Dolphin Updater.app";
|
||||||
return path;
|
|
||||||
#else
|
#else
|
||||||
return path + "Updater.exe";
|
return File::GetExeDirectory() + DIR_SEP + "Updater.exe";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user