From 235ea843344851e5751f445b6deaad2ad9ba39fb Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 30 Oct 2016 23:46:42 -0700 Subject: [PATCH] [DatFile] Almost forgot about the final write location --- SabreTools.Helper/Dats/DatFile.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SabreTools.Helper/Dats/DatFile.cs b/SabreTools.Helper/Dats/DatFile.cs index 368dab15..8243ed20 100644 --- a/SabreTools.Helper/Dats/DatFile.cs +++ b/SabreTools.Helper/Dats/DatFile.cs @@ -5314,9 +5314,9 @@ namespace SabreTools.Helper.Dats // Now set the new output values tempDat.FileName = HttpUtility.HtmlDecode(String.IsNullOrEmpty(tempDat.Name) ? FileName - : tempDat.Name.Replace(Path.DirectorySeparatorChar.ToString(), " - ").Replace(Path.AltDirectorySeparatorChar.ToString(), " - ")); - tempDat.Description += " (" + tempDat.Name.Replace(Path.DirectorySeparatorChar, '-').Replace(Path.AltDirectorySeparatorChar, '-') + ")"; - tempDat.Name = Name + " (" + tempDat.Name.Replace(Path.DirectorySeparatorChar, '-').Replace(Path.AltDirectorySeparatorChar, '-') + ")"; + : tempDat.Name.Replace("/", " - ").Replace("\\", " - "), " - ")); + tempDat.Description += " (" + tempDat.Name.Replace("/", " - ").Replace("\\", " - ") + ")"; + tempDat.Name = Name + " (" + tempDat.Name.Replace("/", " - ").Replace("\\", " - ") + ")"; tempDat.Type = null; // Write out the temporary DAT to the proper directory