From 321a3231be8d74ad02cfa920b3a8030fb45fbc71 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 14 Dec 2019 14:33:23 +0000 Subject: [PATCH] Move old CD dumping code out. --- .../Devices/Dumping/CompactDisc.cs | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/DiscImageChef.Core/Devices/Dumping/CompactDisc.cs b/DiscImageChef.Core/Devices/Dumping/CompactDisc.cs index b7a56aa5d..1f26a1c72 100644 --- a/DiscImageChef.Core/Devices/Dumping/CompactDisc.cs +++ b/DiscImageChef.Core/Devices/Dumping/CompactDisc.cs @@ -65,6 +65,19 @@ namespace DiscImageChef.Core.Devices.Dumping /// Dumps a compact disc /// Disc type as detected in MMC layer internal void CompactDisc(ref MediaType dskType) + { + if(dumpRaw) + { + dumpLog.WriteLine("Raw CD dumping not yet implemented"); + StoppingErrorMessage?.Invoke("Raw CD dumping not yet implemented"); + + return; + } + } + + /// Dumps a compact disc + /// Disc type as detected in MMC layer + internal void CompactDiscOld(ref MediaType dskType) { uint subSize; DateTime start; @@ -81,14 +94,6 @@ namespace DiscImageChef.Core.Devices.Dumping uint blocksToRead = 64; Dictionary mediaTags = new Dictionary(); - if(dumpRaw) - { - dumpLog.WriteLine("Raw CD dumping not yet implemented"); - StoppingErrorMessage?.Invoke("Raw CD dumping not yet implemented"); - - return; - } - dskType = MediaType.CD; int sessions = 1;