Skip to content

Commit f98fc34

Browse files
authored
Merge pull request #34549 from peppy/fix-velopack-update-fail
Fix potential update failures due to not handling required velopack callbacks
2 parents 76b09eb + afcaed6 commit f98fc34

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

osu.Desktop/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,10 @@ private static void setupVelopack(string[] args)
180180
// or is running with pending imports via file association or otherwise.
181181
//
182182
// In both these scenarios, we'd hope the game does not attempt to update.
183-
if (args.Length > 0)
183+
//
184+
// Special consideration for velopack startup arguments, which must be handled during update.
185+
// See https://docs.velopack.io/integrating/hooks#command-line-hooks.
186+
if (args.Length > 0 && !args[0].StartsWith("--velo", StringComparison.Ordinal))
184187
{
185188
Logger.Log("Handling arguments, skipping velopack setup.");
186189
return;

0 commit comments

Comments
 (0)