diff --git a/CUETools.Processor/CUEConfig.cs b/CUETools.Processor/CUEConfig.cs index 7a26da3e..10c96550 100644 --- a/CUETools.Processor/CUEConfig.cs +++ b/CUETools.Processor/CUEConfig.cs @@ -41,6 +41,7 @@ public class CUEConfig public bool extractLog; public bool alwaysWriteUTF8CUEFile; public bool writeUTF8BOM; + public bool writeDummyCUESheetComment; public bool fillUpCUE; public bool overwriteCUEData; public bool filenamesANSISafe; @@ -112,6 +113,7 @@ public CUEConfig() extractLog = true; alwaysWriteUTF8CUEFile = false; writeUTF8BOM = true; + writeDummyCUESheetComment = true; fillUpCUE = true; overwriteCUEData = false; filenamesANSISafe = true; @@ -200,6 +202,7 @@ public CUEConfig(CUEConfig src) extractLog = src.extractLog; alwaysWriteUTF8CUEFile = src.alwaysWriteUTF8CUEFile; writeUTF8BOM = src.writeUTF8BOM; + writeDummyCUESheetComment = src.writeDummyCUESheetComment; fillUpCUE = src.fillUpCUE; overwriteCUEData = src.overwriteCUEData; filenamesANSISafe = src.filenamesANSISafe; @@ -289,6 +292,7 @@ public void Save(SettingsWriter sw) sw.Save("ExtractLog", extractLog); sw.Save("AlwaysWriteUTF8CUEFile", alwaysWriteUTF8CUEFile); sw.Save("WriteUTF8BOM", writeUTF8BOM); + sw.Save("WriteDummyCUESheetComment", writeDummyCUESheetComment); sw.Save("FillUpCUE", fillUpCUE); sw.Save("OverwriteCUEData", overwriteCUEData); sw.Save("FilenamesANSISafe", filenamesANSISafe); @@ -396,6 +400,7 @@ public void Load(SettingsReader sr) extractLog = sr.LoadBoolean("ExtractLog") ?? true; alwaysWriteUTF8CUEFile = sr.LoadBoolean("AlwaysWriteUTF8CUEFile") ?? false; writeUTF8BOM = sr.LoadBoolean("WriteUTF8BOM") ?? true; + writeDummyCUESheetComment = sr.LoadBoolean("WriteDummyCUESheetComment") ?? true; fillUpCUE = sr.LoadBoolean("FillUpCUE") ?? true; overwriteCUEData = sr.LoadBoolean("OverwriteCUEData") ?? false; filenamesANSISafe = sr.LoadBoolean("FilenamesANSISafe") ?? true; diff --git a/CUETools.Processor/CUESheet.cs b/CUETools.Processor/CUESheet.cs index a5f9f5cd..d44c91cd 100644 --- a/CUETools.Processor/CUESheet.cs +++ b/CUETools.Processor/CUESheet.cs @@ -3888,7 +3888,8 @@ public static string CreateDummyCUESheet(CUEConfig _config, FileGroupInfo fileGr } StringWriter sw = new StringWriter(); - sw.WriteLine(String.Format("REM COMMENT \"CUETools generated dummy CUE sheet\"")); + if (_config.writeDummyCUESheetComment) + sw.WriteLine(String.Format("REM COMMENT \"CUETools generated dummy CUE sheet\"")); int trackNo = 0; foreach (FileSystemInfo file in fileGroup.files) {