Infer Roblox launch URIs in launch flag parser

Should fix problems with Firefox's launch handling

Addresses #3186
This commit is contained in:
pizzaboxer 2024-10-24 23:19:01 +01:00
parent f1c320dc8f
commit a34c73a1b0
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -68,6 +68,19 @@ namespace Bloxstrap
_flagMap.Add(identifier, flag); _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 // parse
for (int i = 0; i < Args.Length; i++) for (int i = 0; i < Args.Length; i++)
{ {