From 62b0be9db80902d152c80dfaf1e25aa983a38c29 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 16 Apr 2017 17:17:01 +0100 Subject: [PATCH] Allow non-openra:// Launch.URI prefixes. --- OpenRA.Game/Support/LaunchArguments.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Support/LaunchArguments.cs b/OpenRA.Game/Support/LaunchArguments.cs index 97c6c2cfb3..634245d1f3 100644 --- a/OpenRA.Game/Support/LaunchArguments.cs +++ b/OpenRA.Game/Support/LaunchArguments.cs @@ -43,7 +43,7 @@ namespace OpenRA connect = Connect; if (!string.IsNullOrEmpty(URI)) - connect = URI.Replace("openra://", "").TrimEnd('/'); + connect = URI.Substring(URI.IndexOf("://", System.StringComparison.Ordinal) + 3).TrimEnd('/'); return connect; }