From 8a1f56b81a0caa2a4bb3cf5b41c8d519198221cd Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 23 Oct 2020 02:11:24 +0100 Subject: [PATCH] Allow to dump the video partition of XGD discs when forced is enable. Fixes #384 --- Aaru.Core/Devices/Dumping/MMC.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Aaru.Core/Devices/Dumping/MMC.cs b/Aaru.Core/Devices/Dumping/MMC.cs index 961e3be1f..2965c0321 100644 --- a/Aaru.Core/Devices/Dumping/MMC.cs +++ b/Aaru.Core/Devices/Dumping/MMC.cs @@ -380,6 +380,8 @@ namespace Aaru.Core.Devices.Dumping dskType = MediaType.XGD3; } + isXbox = true; + sense = _dev.ScsiInquiry(out byte[] inqBuf, out _); if(sense || @@ -391,7 +393,10 @@ namespace Aaru.Core.Devices.Dumping StoppingErrorMessage?. Invoke("Dumping Xbox Game Discs requires a drive with Kreon firmware."); - return; + if(!_force) + return; + + isXbox = false; } if(_dumpRaw && !_force) @@ -402,8 +407,6 @@ namespace Aaru.Core.Devices.Dumping // TODO: Exit more gracefully return; } - - isXbox = true; } if(cmdBuf.Length == 2052)