From f556e8b8fb32a2f6c4bb98063df4d093e49e8d87 Mon Sep 17 00:00:00 2001 From: GreemDev Date: Tue, 20 Jan 2026 13:19:35 -0600 Subject: [PATCH] add offline update server catch branch --- src/Ryujinx/Systems/Updater/Updater.GitLab.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Ryujinx/Systems/Updater/Updater.GitLab.cs b/src/Ryujinx/Systems/Updater/Updater.GitLab.cs index deb515797..73fe9f66b 100644 --- a/src/Ryujinx/Systems/Updater/Updater.GitLab.cs +++ b/src/Ryujinx/Systems/Updater/Updater.GitLab.cs @@ -7,6 +7,7 @@ using Ryujinx.Common.Logging; using Ryujinx.Systems.Update.Client; using Ryujinx.Systems.Update.Common; using System; +using System.Net; using System.Net.Http; using System.Threading.Tasks; @@ -46,6 +47,12 @@ namespace Ryujinx.Ava.Systems return Return.Failure( new MessageError("DNS resolution error occurred. Is your internet down?")); } + catch (HttpRequestException hre) + when (hre.StatusCode is HttpStatusCode.BadGateway) + { + return Return.Failure( + new MessageError("Could not connect to the update server, but it appears like you have internet. It seems like the update server is offline, try again later.")); + } } public static async Task> CheckVersionAsync(bool showVersionUpToDate = false)