mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Remove external quotes parameter for CMP
This commit is contained in:
@@ -36,7 +36,7 @@ namespace SabreTools.DatFiles
|
||||
/// </summary>
|
||||
/// <returns>A default Logiqx DatFile</returns>
|
||||
public static DatFile CreateDatFile()
|
||||
=> CreateDatFile(DatFormat.Logiqx, baseDat: null, quotes: true);
|
||||
=> CreateDatFile(DatFormat.Logiqx, baseDat: null);
|
||||
|
||||
/// <summary>
|
||||
/// Create a specific type of DatFile to be used based on a format
|
||||
@@ -44,22 +44,21 @@ namespace SabreTools.DatFiles
|
||||
/// <param name="datFormat">Format of the DAT to be created</param>
|
||||
/// <returns>DatFile of the specific internal type</returns>
|
||||
public static DatFile CreateDatFile(DatFormat datFormat)
|
||||
=> CreateDatFile(datFormat, baseDat: null, quotes: true);
|
||||
=> CreateDatFile(datFormat, baseDat: null);
|
||||
|
||||
/// <summary>
|
||||
/// Create a specific type of DatFile to be used based on a format and a base DAT
|
||||
/// </summary>
|
||||
/// <param name="datFormat">Format of the DAT to be created</param>
|
||||
/// <param name="baseDat">DatFile containing the information to use in specific operations</param>
|
||||
/// <param name="quotes">For relevant types, assume the usage of quotes</param>
|
||||
/// <returns>DatFile of the specific internal type that corresponds to the inputs</returns>
|
||||
public static DatFile CreateDatFile(DatFormat datFormat, DatFile? baseDat, bool quotes)
|
||||
public static DatFile CreateDatFile(DatFormat datFormat, DatFile? baseDat)
|
||||
{
|
||||
return datFormat switch
|
||||
{
|
||||
DatFormat.ArchiveDotOrg => new ArchiveDotOrg(baseDat),
|
||||
DatFormat.AttractMode => new AttractMode(baseDat),
|
||||
DatFormat.ClrMamePro => new ClrMamePro(baseDat, quotes),
|
||||
DatFormat.ClrMamePro => new ClrMamePro(baseDat),
|
||||
DatFormat.CSV => new CommaSeparatedValue(baseDat),
|
||||
DatFormat.DOSCenter => new DosCenter(baseDat),
|
||||
DatFormat.EverdriveSMDB => new EverdriveSMDB(baseDat),
|
||||
|
||||
Reference in New Issue
Block a user