Extra logging for protocol handling

This commit is contained in:
pizzaboxer 2023-04-25 13:05:18 +01:00
parent 64db0527b3
commit d41c66c9f6
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -240,10 +240,14 @@ namespace Bloxstrap
{ {
if (LaunchArgs[0].StartsWith("roblox-player:")) if (LaunchArgs[0].StartsWith("roblox-player:"))
{ {
Logger.WriteLine("[App::OnStartup] Handling protocol for roblox-player");
Logger.WriteLine($"[App::OnStartup] Got URI as '{LaunchArgs[0]}'");
commandLine = Protocol.ParseUri(LaunchArgs[0]); commandLine = Protocol.ParseUri(LaunchArgs[0]);
} }
else if (LaunchArgs[0].StartsWith("roblox:")) else if (LaunchArgs[0].StartsWith("roblox:"))
{ {
Logger.WriteLine("[App::OnStartup] Handling protocol for roblox");
Logger.WriteLine($"[App::OnStartup] Got URI as '{LaunchArgs[0]}'");
commandLine = $"--app --deeplink {LaunchArgs[0]}"; commandLine = $"--app --deeplink {LaunchArgs[0]}";
} }
else else
@ -258,6 +262,8 @@ namespace Bloxstrap
if (!String.IsNullOrEmpty(commandLine)) if (!String.IsNullOrEmpty(commandLine))
{ {
Logger.WriteLine($"[App::OnStartup] Got launch args as '{LaunchArgs[0]}'");
if (!IsFirstRun) if (!IsFirstRun)
ShouldSaveConfigs = true; ShouldSaveConfigs = true;