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
This commit is contained in:
@@ -102,7 +102,7 @@ namespace OpenRA.Mods.Common
|
|||||||
|
|
||||||
foreach (var file in directory.Value)
|
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 (File.Exists(dest))
|
||||||
{
|
{
|
||||||
if (overwrite)
|
if (overwrite)
|
||||||
@@ -144,7 +144,7 @@ namespace OpenRA.Mods.Common
|
|||||||
}
|
}
|
||||||
|
|
||||||
var destFile = Path.GetFileName(file);
|
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)
|
if (File.Exists(dest) && !overwrite)
|
||||||
{
|
{
|
||||||
Log.Write("debug", "Skipping {0}".F(dest));
|
Log.Write("debug", "Skipping {0}".F(dest));
|
||||||
|
|||||||
Reference in New Issue
Block a user