diff --git a/Bloxstrap/LaunchSettings.cs b/Bloxstrap/LaunchSettings.cs index c700d9d..28a06ea 100644 --- a/Bloxstrap/LaunchSettings.cs +++ b/Bloxstrap/LaunchSettings.cs @@ -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}\""; + } } } }