fix the fix in 45a0c8cffb
This commit is contained in:
parent
45a0c8cffb
commit
e3c27813b6
|
@ -182,7 +182,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
dsr.ReadLBA_2352(startLba + i, buf2352, 0);
|
dsr.ReadLBA_2352(startLba + i, buf2352, 0);
|
||||||
|
|
||||||
for (var j = 0; j < 2352 - 32 - 4 - 4; j++)
|
for (var j = 0; j < 2352 - bootLenOffset - 4; j++)
|
||||||
{
|
{
|
||||||
if (buf2352[j] == _jaguarHeader[0])
|
if (buf2352[j] == _jaguarHeader[0])
|
||||||
{
|
{
|
||||||
|
@ -191,7 +191,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
bootLen = (buf2352[j + bootLenOffset + 0] << 24) | (buf2352[j + bootLenOffset + 1] << 16) |
|
bootLen = (buf2352[j + bootLenOffset + 0] << 24) | (buf2352[j + bootLenOffset + 1] << 16) |
|
||||||
(buf2352[j + bootLenOffset + 2] << 8) | buf2352[j + bootLenOffset + 3];
|
(buf2352[j + bootLenOffset + 2] << 8) | buf2352[j + bootLenOffset + 3];
|
||||||
bootLba = startLba + i;
|
bootLba = startLba + i;
|
||||||
bootOff = j + 32 + 4 + 4;
|
bootOff = j + bootLenOffset + 4;
|
||||||
byteswapped = false;
|
byteswapped = false;
|
||||||
foundHeader = true;
|
foundHeader = true;
|
||||||
break;
|
break;
|
||||||
|
@ -204,7 +204,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
bootLen = (buf2352[j + bootLenOffset + 1] << 24) | (buf2352[j + bootLenOffset + 0] << 16) |
|
bootLen = (buf2352[j + bootLenOffset + 1] << 24) | (buf2352[j + bootLenOffset + 0] << 16) |
|
||||||
(buf2352[j + bootLenOffset + 3] << 8) | buf2352[j + bootLenOffset + 2];
|
(buf2352[j + bootLenOffset + 3] << 8) | buf2352[j + bootLenOffset + 2];
|
||||||
bootLba = startLba + i;
|
bootLba = startLba + i;
|
||||||
bootOff = j + 32 + 4 + 4;
|
bootOff = j + bootLenOffset + 4;
|
||||||
byteswapped = true;
|
byteswapped = true;
|
||||||
foundHeader = true;
|
foundHeader = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue