Fix detecting XGD3 when dumping.

This commit is contained in:
2020-10-23 02:16:56 +01:00
parent 8a1f56b81a
commit d48f25062d

View File

@@ -374,9 +374,9 @@ namespace Aaru.Core.Devices.Dumping
dskType = MediaType.XGD2;
// All XGD3 all have the same number of blocks
if(blocks == 25063 || // Locked (or non compatible drive)
blocks == 4229664 || // Xtreme unlock
blocks == 4246304) // Wxripper unlock
if(blocks + 1 == 25063 || // Locked (or non compatible drive)
blocks + 1 == 4229664 || // Xtreme unlock
blocks + 1 == 4246304) // Wxripper unlock
dskType = MediaType.XGD3;
}