mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user