mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Better shorthand, change internal naming
This commit is contained in:
@@ -136,12 +136,12 @@ namespace SabreTools.Library.DatFiles
|
||||
case DatFormat.RomCenter:
|
||||
return new RomCenter(baseDat);
|
||||
|
||||
case DatFormat.SabreDAT:
|
||||
return new SabreDat(baseDat);
|
||||
|
||||
case DatFormat.SabreJSON:
|
||||
return new SabreJSON(baseDat);
|
||||
|
||||
case DatFormat.SabreXML:
|
||||
return new SabreXML(baseDat);
|
||||
|
||||
case DatFormat.SoftwareList:
|
||||
return new SoftwareList(baseDat);
|
||||
|
||||
|
||||
@@ -981,16 +981,16 @@ namespace SabreTools.Library.DatFiles
|
||||
}
|
||||
|
||||
// SabreDAT
|
||||
if (DatFormat.HasFlag(DatFormat.SabreDAT))
|
||||
if (DatFormat.HasFlag(DatFormat.SabreXML))
|
||||
{
|
||||
if (usedExtensions.Contains(".xml"))
|
||||
{
|
||||
outfileNames.Add(DatFormat.SabreDAT, CreateOutFileNamesHelper(outDir, ".sd.xml", overwrite));
|
||||
outfileNames.Add(DatFormat.SabreXML, CreateOutFileNamesHelper(outDir, ".sd.xml", overwrite));
|
||||
usedExtensions.Add(".sd.xml");
|
||||
}
|
||||
else
|
||||
{
|
||||
outfileNames.Add(DatFormat.SabreDAT, CreateOutFileNamesHelper(outDir, ".xml", overwrite));
|
||||
outfileNames.Add(DatFormat.SabreXML, CreateOutFileNamesHelper(outDir, ".xml", overwrite));
|
||||
usedExtensions.Add(".xml");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace SabreTools.Library.DatFiles
|
||||
/// <summary>
|
||||
/// SabreDAT XML
|
||||
/// </summary>
|
||||
SabreDAT = 1 << 5,
|
||||
SabreXML = 1 << 5,
|
||||
|
||||
/// <summary>
|
||||
/// openMSX Software List XML
|
||||
@@ -55,7 +55,7 @@ namespace SabreTools.Library.DatFiles
|
||||
ClrMamePro = 1 << 7,
|
||||
|
||||
/// <summary>
|
||||
/// RomCetner INI-based
|
||||
/// RomCenter INI-based
|
||||
/// </summary>
|
||||
RomCenter = 1 << 8,
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ using Newtonsoft.Json.Linq;
|
||||
namespace SabreTools.Library.DatFiles
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents parsing and writing of a reference SabreJSON DAT
|
||||
/// Represents parsing and writing of a reference SabreDAT JSON
|
||||
/// </summary>
|
||||
internal class SabreJSON : DatFile
|
||||
{
|
||||
|
||||
@@ -12,15 +12,15 @@ using SabreTools.Library.IO;
|
||||
namespace SabreTools.Library.DatFiles
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents parsing and writing of a SabreDat XML DAT
|
||||
/// Represents parsing and writing of a SabreDAT XML
|
||||
/// </summary>
|
||||
internal class SabreDat : DatFile
|
||||
internal class SabreXML : DatFile
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructor designed for casting a base DatFile
|
||||
/// </summary>
|
||||
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||
public SabreDat(DatFile datFile)
|
||||
public SabreXML(DatFile datFile)
|
||||
: base(datFile)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user