From 575422ed1792f557623ed187c42a008c11aafc5a Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Sat, 15 Jun 2024 18:17:58 +0100 Subject: [PATCH] fix no value parameters being ignored --- Bloxstrap/ProtocolHandler.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/ProtocolHandler.cs b/Bloxstrap/ProtocolHandler.cs index 9d5d66f4..0daf07a9 100644 --- a/Bloxstrap/ProtocolHandler.cs +++ b/Bloxstrap/ProtocolHandler.cs @@ -11,13 +11,16 @@ static class ProtocolHandler public static string ParseUri(string protocol) { - var args = new Dictionary(); + var args = new Dictionary(); bool channelArgPresent = false; foreach (var parameter in protocol.Split('+')) { if (!parameter.Contains(':')) + { + args[parameter] = null; continue; + } var kv = parameter.Split(':'); string key = kv[0]; @@ -42,7 +45,7 @@ public static string ParseUri(string protocol) if (!channelArgPresent) EnrollChannel(RobloxDeployment.DefaultChannel); - var pairs = args.Select(x => x.Key + ":" + x.Value).ToArray(); + var pairs = args.Select(x => x.Value != null ? x.Key + ":" + x.Value : x.Key).ToArray(); return String.Join("+", pairs); }