Stop checking RW subchannel once it has been found to contain data.

This commit is contained in:
2020-06-14 15:13:27 +01:00
parent 09b2ffcbfb
commit aca4ab6f62

View File

@@ -116,15 +116,19 @@ namespace Aaru.Core.Devices.Dumping
pOk = false;
for(int w = 0; w < 8; w++)
{
if(((deSub[p] >> w) & 1) > 0)
pWeight++;
}
}
for(int rw = subPos + 24; rw < subPos + 96; rw++)
if(deSub[rw] != 0)
rwOk = false;
{
if(deSub[rw] == 0)
continue;
rwOk = false;
break;
}
bool rwPacket = false;
bool cdtextPacket = false;