Only show warning about Red Book extensions if disc contains audio tracks.

This commit is contained in:
2020-01-11 15:53:07 +00:00
parent cb1807242a
commit 53f92aa111

View File

@@ -284,12 +284,8 @@ namespace DiscImageChef.Core.Devices.Dumping
}
_dumpLog.WriteLine("Drive can read without subchannel...");
_dumpLog.WriteLine("WARNING: If disc says CD+G, CD+EG, CD-MIDI, CD Graphics or CD Enhanced Graphics, dump will be incorrect!");
UpdateStatus?.Invoke("Drive can read without subchannel...");
UpdateStatus?.
Invoke("WARNING: If disc says CD+G, CD+EG, CD-MIDI, CD Graphics or CD Enhanced Graphics, dump will be incorrect!");
subSize = 0;
subType = TrackSubchannelType.None;
@@ -442,6 +438,15 @@ namespace DiscImageChef.Core.Devices.Dumping
tracks = trkList.ToArray();
}
if(tracks.Any(t => t.TrackType == TrackType.Audio) &&
supportedSubchannel != MmcSubchannel.Raw)
{
_dumpLog.WriteLine("WARNING: If disc says CD+G, CD+EG, CD-MIDI, CD Graphics or CD Enhanced Graphics, dump will be incorrect!");
UpdateStatus?.
Invoke("WARNING: If disc says CD+G, CD+EG, CD-MIDI, CD Graphics or CD Enhanced Graphics, dump will be incorrect!");
}
// Check mode for tracks
for(int t = 0; t < tracks.Length; t++)
{