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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user