mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
Remove updater
baca98a
This commit is contained in:
parent
60a91ea062
commit
7316b8d574
1 changed files with 9 additions and 19 deletions
|
@ -173,27 +173,17 @@ void SlippiUser::OpenLogInPage()
|
||||||
|
|
||||||
void SlippiUser::UpdateApp()
|
void SlippiUser::UpdateApp()
|
||||||
{
|
{
|
||||||
#if defined(__APPLE__) || defined(_WIN32)
|
std::string url = "https://slippi.gg/downloads?update=true";
|
||||||
CriticalAlertFmtT("Dolphin auto updates are not available on standalone builds. Migrate to "
|
|
||||||
"the Slippi Launcher at your earliest convenience");
|
#ifdef _WIN32
|
||||||
return;
|
std::string command = "explorer \"" + url + "\"";
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
std::string command = "open \"" + url + "\"";
|
||||||
#else
|
#else
|
||||||
const char* appimage_path = getenv("APPIMAGE");
|
std::string command = "xdg-open \"" + url + "\""; // Linux
|
||||||
const char* appmount_path = getenv("APPDIR");
|
|
||||||
if (!appimage_path)
|
|
||||||
{
|
|
||||||
CriticalAlertFmtT("Automatic updates are not available for non-AppImage Linux builds.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
std::string path(appimage_path);
|
|
||||||
std::string mount_path(appmount_path);
|
|
||||||
std::string command = mount_path + "/usr/bin/appimageupdatetool " + path;
|
|
||||||
WARN_LOG_FMT(SLIPPI, "Executing app update command: {}", command);
|
|
||||||
RunSystemCommand(command);
|
|
||||||
CriticalAlertFmtT(
|
|
||||||
"Dolphin failed to update, please head over to the Slippi Discord for support.");
|
|
||||||
return;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
RunSystemCommand(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlippiUser::ListenForLogIn()
|
void SlippiUser::ListenForLogIn()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue