From f96c2710cd8809057682bb50a76344529822236e Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 6 Oct 2017 22:45:34 +0100 Subject: [PATCH] Remove directory creation side effect from Platform.SupportDir. --- OpenRA.Game/ExternalMods.cs | 3 --- OpenRA.Game/Platform.cs | 3 --- 2 files changed, 6 deletions(-) diff --git a/OpenRA.Game/ExternalMods.cs b/OpenRA.Game/ExternalMods.cs index 1efc75d75a..b3896bd2c9 100644 --- a/OpenRA.Game/ExternalMods.cs +++ b/OpenRA.Game/ExternalMods.cs @@ -123,9 +123,6 @@ namespace OpenRA foreach (var source in sources.Distinct()) { - if (!Directory.Exists(source)) - continue; - var metadataPath = Path.Combine(source, "ModMetadata"); try diff --git a/OpenRA.Game/Platform.cs b/OpenRA.Game/Platform.cs index 60d6c4ba87..b6caf7992d 100644 --- a/OpenRA.Game/Platform.cs +++ b/OpenRA.Game/Platform.cs @@ -93,9 +93,6 @@ namespace OpenRA break; } - if (!Directory.Exists(dir)) - Directory.CreateDirectory(dir); - return dir + Path.DirectorySeparatorChar; }