From a559f6d4ac0169d645db1f9536867aa37f524323 Mon Sep 17 00:00:00 2001 From: Dan9550 <56kflyingtoaster@gmail.com> Date: Sat, 25 Jul 2015 10:59:06 +1000 Subject: [PATCH] Modified mod.yaml to respect case sensitive file names Modified mod.yaml to respect case sensitive file names Modified install logic to convert case of files on install Revert initial changes --- OpenRA.Mods.Common/InstallUtils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/InstallUtils.cs b/OpenRA.Mods.Common/InstallUtils.cs index 607f917761..c123785c90 100644 --- a/OpenRA.Mods.Common/InstallUtils.cs +++ b/OpenRA.Mods.Common/InstallUtils.cs @@ -102,7 +102,7 @@ namespace OpenRA.Mods.Common foreach (var file in directory.Value) { - var dest = Path.Combine(destPath, targetDir, file); + var dest = Path.Combine(destPath, targetDir, file.ToLowerInvariant()); if (File.Exists(dest)) { if (overwrite) @@ -144,7 +144,7 @@ namespace OpenRA.Mods.Common } var destFile = Path.GetFileName(file); - var dest = Path.Combine(destPath, targetDir, destFile); + var dest = Path.Combine(destPath, targetDir, destFile.ToLowerInvariant()); if (File.Exists(dest) && !overwrite) { Log.Write("debug", "Skipping {0}".F(dest));