From 28eab37033e4188f837ea694b36c117d93ef331c Mon Sep 17 00:00:00 2001 From: dexy Date: Fri, 12 Nov 2021 22:11:21 +1100 Subject: [PATCH] Only convert XML files with more than one dot in the filename when dragged into RPF Explorer --- CodeWalker/ExploreForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeWalker/ExploreForm.cs b/CodeWalker/ExploreForm.cs index 7c87d59..ab64847 100644 --- a/CodeWalker/ExploreForm.cs +++ b/CodeWalker/ExploreForm.cs @@ -3886,8 +3886,8 @@ namespace CodeWalker return; } - var raw = files.Where(x => !x.EndsWith(".xml")); - var xml = files.Except(raw); + var xml = files.Where(x => x.EndsWith(".xml") && (x.IndexOf('.') != x.LastIndexOf('.'))); + var raw = files.Except(xml); if (raw.Count() > 0) ImportRaw(raw.ToArray()); if (xml.Count() > 0) ImportXml(xml.ToArray());