mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix program flow bug w/ launch settings
this is a nasty bandaid fix that ideally will be removed when we actually work on it
This commit is contained in:
parent
5cf49b444c
commit
989ba00995
@ -144,6 +144,8 @@ namespace Bloxstrap
|
||||
FastFlags.Load();
|
||||
}
|
||||
|
||||
LaunchSettings.ParseRoblox();
|
||||
|
||||
HttpClient.Timeout = TimeSpan.FromSeconds(30);
|
||||
HttpClient.DefaultRequestHeaders.Add("User-Agent", ProjectRepository);
|
||||
|
||||
|
@ -38,6 +38,8 @@ namespace Bloxstrap
|
||||
|
||||
private Dictionary<string, PropertyInfo>? _flagMap;
|
||||
|
||||
private string? _robloxArg;
|
||||
|
||||
// pizzaboxer wanted this
|
||||
private void ParseLaunchFlagProps()
|
||||
{
|
||||
@ -76,8 +78,14 @@ namespace Bloxstrap
|
||||
}
|
||||
}
|
||||
|
||||
private void ParseRoblox(string arg, ref int i)
|
||||
// private void ParseRoblox(string arg, ref int i)
|
||||
public void ParseRoblox()
|
||||
{
|
||||
string? arg = _robloxArg;
|
||||
|
||||
if (arg is null)
|
||||
return;
|
||||
|
||||
if (arg.StartsWith("roblox-player:"))
|
||||
{
|
||||
RobloxLaunchArgs = ProtocolHandler.ParseUri(arg);
|
||||
@ -147,7 +155,8 @@ namespace Bloxstrap
|
||||
// check & handle roblox arg
|
||||
if (!firstArg.StartsWith('-') || firstArg == "-ide")
|
||||
{
|
||||
ParseRoblox(firstArg, ref idx);
|
||||
// ParseRoblox(firstArg, ref idx);
|
||||
_robloxArg = firstArg;
|
||||
idx++; // roblox arg
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user