Skip to content

Commit

Permalink
Copy external log with Image and embedded CUE
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
c72578 committed Aug 17, 2024
1 parent 4ddf769 commit ea835f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CUETools.Processor/CUESheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CUEToolsSourceFile>();
_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);
Expand Down

0 comments on commit ea835f7

Please sign in to comment.