From 6743904372abf22de8386e928656a3a857d62d34 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 2 Nov 2025 14:56:35 +0000 Subject: [PATCH] Fix custom map loading from relative Engine.SupportDir paths. --- OpenRA.Game/Platform.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Game/Platform.cs b/OpenRA.Game/Platform.cs index cfaf474522..cbe153676e 100644 --- a/OpenRA.Game/Platform.cs +++ b/OpenRA.Game/Platform.cs @@ -221,6 +221,9 @@ namespace OpenRA if (!Directory.Exists(path)) throw new DirectoryNotFoundException(path); + // Ensure that userSupportPath is an absolute path + path = Path.GetFullPath(path); + if (!path.EndsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.Ordinal) && !path.EndsWith(Path.AltDirectorySeparatorChar.ToString(), StringComparison.Ordinal)) path += Path.DirectorySeparatorChar;