From a34c73a1b084d1338d672e51c54945963124ae2d Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Thu, 24 Oct 2024 23:19:01 +0100 Subject: [PATCH] Infer Roblox launch URIs in launch flag parser Should fix problems with Firefox's launch handling Addresses #3186 --- Bloxstrap/LaunchSettings.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Bloxstrap/LaunchSettings.cs b/Bloxstrap/LaunchSettings.cs index c700d9d..62c87f5 100644 --- a/Bloxstrap/LaunchSettings.cs +++ b/Bloxstrap/LaunchSettings.cs @@ -68,6 +68,19 @@ namespace Bloxstrap _flagMap.Add(identifier, flag); } + // infer roblox launch uris + if (Args.Length >= 1) + { + string arg = Args[0]; + + if (arg.StartsWith("roblox:", StringComparison.OrdinalIgnoreCase) + || arg.StartsWith("roblox-player:", StringComparison.OrdinalIgnoreCase)) + { + RobloxLaunchMode = LaunchMode.Player; + RobloxLaunchArgs = arg; + } + } + // parse for (int i = 0; i < Args.Length; i++) {