From b4d100d3637beadf8848ab594d7d16be8e90aa36 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 15 Mar 2017 20:10:06 -0700 Subject: [PATCH] [DatFile] Rename "-" to "_" --- SabreTools.Helper/Dats/Partials/DatFile.DFD.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SabreTools.Helper/Dats/Partials/DatFile.DFD.cs b/SabreTools.Helper/Dats/Partials/DatFile.DFD.cs index 18c29019..ef23d7cb 100644 --- a/SabreTools.Helper/Dats/Partials/DatFile.DFD.cs +++ b/SabreTools.Helper/Dats/Partials/DatFile.DFD.cs @@ -108,14 +108,14 @@ namespace SabreTools.Helper.Dats if (Type == "SuperDAT") { gamename = fulldir.Remove(0, basePath.Length + 1); - romname = "-"; + romname = "_"; } // Otherwise, we want just the top level folder as the game, and the file as everything else else { gamename = fulldir.Remove(0, basePath.Length + 1).Split(Path.DirectorySeparatorChar)[0]; - romname = Path.Combine(fulldir.Remove(0, basePath.Length + 1 + gamename.Length), "-"); + romname = Path.Combine(fulldir.Remove(0, basePath.Length + 1 + gamename.Length), "_"); } // Sanitize the names @@ -283,14 +283,14 @@ namespace SabreTools.Helper.Dats if (Type == "SuperDAT") { gamename = Path.Combine(Path.GetDirectoryName(Path.GetFullPath(item)).Remove(0, basePath.Length), Path.GetFileNameWithoutExtension(item)); - romname = Path.Combine(fulldir.Remove(0, tempSubDir.Length), "-"); + romname = Path.Combine(fulldir.Remove(0, tempSubDir.Length), "_"); } // Otherwise, we want just the item as the game, and the file as everything else else { gamename = Path.GetFileNameWithoutExtension(item); - romname = Path.Combine(fulldir.Remove(0, tempSubDir.Length), "-"); + romname = Path.Combine(fulldir.Remove(0, tempSubDir.Length), "_"); } // Sanitize the names