mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Add future code for "description-as-name"
This commit is contained in:
@@ -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("\"", "''");
|
||||
|
||||
Reference in New Issue
Block a user