mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 00:21:33 -07:00
add studio command line parsing
This commit is contained in:
parent
9edd5fe2da
commit
0ffaec74ea
@ -53,6 +53,10 @@ namespace Bloxstrap
|
||||
{
|
||||
const string LOG_IDENT = "LaunchSettings";
|
||||
|
||||
#if DEBUG
|
||||
App.Logger.WriteLine(LOG_IDENT, $"Launched with arguments: {string.Join(' ', args)}");
|
||||
#endif
|
||||
|
||||
Args = args;
|
||||
|
||||
// build flag map
|
||||
@ -112,7 +116,23 @@ namespace Bloxstrap
|
||||
{
|
||||
RobloxLaunchMode = LaunchMode.Studio;
|
||||
|
||||
// TODO: do this later
|
||||
if (String.IsNullOrEmpty(data))
|
||||
return;
|
||||
|
||||
if (data.StartsWith("roblox-studio:"))
|
||||
{
|
||||
RobloxLaunchArgs = data;
|
||||
}
|
||||
else if (data.StartsWith("roblox-studio-auth:"))
|
||||
{
|
||||
RobloxLaunchMode = LaunchMode.StudioAuth;
|
||||
RobloxLaunchArgs = data;
|
||||
}
|
||||
else
|
||||
{
|
||||
// likely a local path
|
||||
RobloxLaunchArgs = $"-task EditFile -localPlaceFile \"{data}\"";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user