From 6deb49e095a2b4ace21bc673899cb58f05e1f071 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Wed, 14 Sep 2016 19:44:57 +0100 Subject: [PATCH] Resolve a bare "." to the game install path. --- OpenRA.Game/Platform.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Game/Platform.cs b/OpenRA.Game/Platform.cs index d7e03389af..b94da9e017 100644 --- a/OpenRA.Game/Platform.cs +++ b/OpenRA.Game/Platform.cs @@ -106,6 +106,9 @@ namespace OpenRA path = SupportDir + path.Substring(1); // paths starting with . are relative to the game dir + if (path == ".") + return GameDir; + if (path.StartsWith("./") || path.StartsWith(".\\")) path = GameDir + path.Substring(2);