From fc5b517c0460be98a580c53c26905349e6d16dfc Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 7 Apr 2016 17:16:13 -0700 Subject: [PATCH] Remove mappings that shouldn't happen anymore --- DATabase/Mappings/NonGood.xml | 34 ++++++---------------------------- DatSplit/DatSplit.cs | 8 ++++---- 2 files changed, 10 insertions(+), 32 deletions(-) diff --git a/DATabase/Mappings/NonGood.xml b/DATabase/Mappings/NonGood.xml index 2decbc61..c5e3312b 100644 --- a/DATabase/Mappings/NonGood.xml +++ b/DATabase/Mappings/NonGood.xml @@ -9,14 +9,8 @@ - - - - - - - - + + @@ -32,18 +26,8 @@ - - - - - - - - - - - - + + @@ -54,12 +38,6 @@ - - - - - - - - + + \ No newline at end of file diff --git a/DatSplit/DatSplit.cs b/DatSplit/DatSplit.cs index 4fe315d7..26a2b434 100644 --- a/DatSplit/DatSplit.cs +++ b/DatSplit/DatSplit.cs @@ -26,8 +26,8 @@ namespace DatSplit // Set needed strings _filename = args[0]; - _extA = (args[1].StartsWith(".") ? args[1] : "." + args[1]); - _extB = (args[2].StartsWith(".") ? args[2] : "." + args[2]); + _extA = (args[1].StartsWith(".") ? args[1] : "." + args[1]).ToUpperInvariant(); ; + _extB = (args[2].StartsWith(".") ? args[2] : "." + args[2]).ToUpperInvariant(); // Take the filename, and load it as an XML document XmlDocument doc = new XmlDocument(); @@ -96,7 +96,7 @@ namespace DatSplit size = Int64.Parse(child.Attributes["size"].Value); } - if (child.Attributes["name"].Value.EndsWith(_extA)) + if (child.Attributes["name"].Value.ToUpperInvariant().EndsWith(_extA)) { if (!inA) { @@ -108,7 +108,7 @@ namespace DatSplit } outA.AppendChild(outDocA.ImportNode(child, true)); } - else if (child.Attributes["name"].Value.EndsWith(_extB)) + else if (child.Attributes["name"].Value.ToUpperInvariant().EndsWith(_extB)) { if (!inB) {