1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 19:40:09 +08:00

Fix potential update failures due to not handling required velopack callbacks

This commit is contained in:
Dean Herbert
2025-08-07 17:42:06 +09:00
Unverified
parent 76b09eb677
commit afcaed673f
+4 -1
View File
@@ -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;