[DATFromDir] Fix SuperDAT creation

SuperDATs don't need the DAT name as a prefix for each of the games since that actually screws things up. Removed from all locations
This commit is contained in:
Matt Nadareski
2016-08-17 21:01:46 -07:00
parent be9313b8e0
commit 23a17d4f01

View File

@@ -157,7 +157,7 @@ namespace SabreTools
{
Name = "null",
Game = (_datdata.Type == "SuperDAT" ?
_datdata.Name + (actualroot != "" && !actualroot.StartsWith(Path.DirectorySeparatorChar.ToString()) ?
(actualroot != "" && !actualroot.StartsWith(Path.DirectorySeparatorChar.ToString()) ?
Path.DirectorySeparatorChar.ToString() :
"") + actualroot :
actualroot),
@@ -190,7 +190,7 @@ namespace SabreTools
{
Name = "null",
Game = (_datdata.Type == "SuperDAT" ?
_datdata.Name + (actualroot != "" && !actualroot.StartsWith(Path.DirectorySeparatorChar.ToString()) ?
(actualroot != "" && !actualroot.StartsWith(Path.DirectorySeparatorChar.ToString()) ?
Path.DirectorySeparatorChar.ToString() :
"") + actualroot :
actualroot),
@@ -448,7 +448,7 @@ namespace SabreTools
// Update rom information
rom.Game = (datdata.Type == "SuperDAT" ?
datdata.Name + (actualroot != "" && !actualroot.StartsWith(Path.DirectorySeparatorChar.ToString()) ?
(actualroot != "" && !actualroot.StartsWith(Path.DirectorySeparatorChar.ToString()) ?
Path.DirectorySeparatorChar.ToString() :
"") + actualroot :
actualroot);