From afcaed673f9799a3f1bb671087d5e0ded5dd33d0 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 7 Aug 2025 17:42:06 +0900 Subject: [PATCH] Fix potential update failures due to not handling required velopack callbacks --- osu.Desktop/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osu.Desktop/Program.cs b/osu.Desktop/Program.cs index 85373d7af8..612edb2470 100644 --- a/osu.Desktop/Program.cs +++ b/osu.Desktop/Program.cs @@ -180,7 +180,10 @@ namespace osu.Desktop // or is running with pending imports via file association or otherwise. // // In both these scenarios, we'd hope the game does not attempt to update. - if (args.Length > 0) + // + // Special consideration for velopack startup arguments, which must be handled during update. + // See https://docs.velopack.io/integrating/hooks#command-line-hooks. + if (args.Length > 0 && !args[0].StartsWith("--velo", StringComparison.Ordinal)) { Logger.Log("Handling arguments, skipping velopack setup."); return;