[DatFile] Add future code for "description-as-name"

This commit is contained in:
Matt Nadareski
2017-02-23 16:17:43 -08:00
parent 71c9d93965
commit 6192152919

View File

@@ -1513,6 +1513,16 @@ namespace SabreTools.Helper.Dats
// For Logiqx, SabreDAT, and Software List
case "description":
machine.Description = subreader.ReadElementContentAsString();
/*
// If we want to have the description as the name, do so
if (decAsName)
{
machine.Name = machine.Description.Replace('/', '_').Replace("\"", "''");
}
*/
// If we have a softlist and we don't want preserve the name
if (!softlist && temptype == "software")
{
machine.Name = machine.Description.Replace('/', '_').Replace("\"", "''");