From ea835f736ca167fdce03bf07add0c13ebd6e5f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20St=C3=B6ggl?= Date: Sat, 17 Aug 2024 07:40:48 +0200 Subject: [PATCH] Copy external log with Image and embedded CUE - Copy the external log file also in this case: * Image * Embedded CUE * No external CUE Setting disabled: Create .cue file even if embedded * Without embedded LOG file Setting disabled: Write extraction log to "LOG" tag * External log file present - Resolves #335 --- CUETools.Processor/CUESheet.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CUETools.Processor/CUESheet.cs b/CUETools.Processor/CUESheet.cs index 2f8852fb..a5f9f5cd 100644 --- a/CUETools.Processor/CUESheet.cs +++ b/CUETools.Processor/CUESheet.cs @@ -1136,6 +1136,11 @@ public void Open(string pathIn) _eacLog = tags.Get("LOG"); if (_eacLog == null) _eacLog = tags.Get("LOGFILE"); if (_eacLog == null) _eacLog = tags.Get("EACLOG"); + _logFiles = new List(); + _defaultLog = Path.GetFileNameWithoutExtension(pathIn); + foreach (string logPath in Directory.GetFiles(_inputDir, "*.log")) + try { _logFiles.Add(new CUEToolsSourceFile(logPath, new StreamReader(logPath, CUESheet.Encoding))); } + catch { } if (cuesheetTag != null) { sr = new StringReader(cuesheetTag);