Merge pull request #1095 from LuigiBlood/64dd_2
[64DD] 64DD disk conversion fix
This commit is contained in:
commit
a00011b0f3
|
@ -290,7 +290,7 @@ void CN64Disk::ConvertDiskFormat()
|
||||||
atrack = 0;
|
atrack = 0;
|
||||||
for (track = 0; track < ZoneTracks[zone]; track++)
|
for (track = 0; track < ZoneTracks[zone]; track++)
|
||||||
{
|
{
|
||||||
if (track == SystemData[0x20 + zone * 0xC + atrack])
|
if (atrack < 0xC && track == SystemData[0x20 + zone * 0xC + atrack])
|
||||||
{
|
{
|
||||||
memset((void *)(&BlockData0), 0, BLOCKSIZE(zone));
|
memset((void *)(&BlockData0), 0, BLOCKSIZE(zone));
|
||||||
memset((void *)(&BlockData1), 0, BLOCKSIZE(zone));
|
memset((void *)(&BlockData1), 0, BLOCKSIZE(zone));
|
||||||
|
@ -327,7 +327,7 @@ void CN64Disk::ConvertDiskFormat()
|
||||||
atrack = 0xB;
|
atrack = 0xB;
|
||||||
for (track = 1; track < ZoneTracks[zone] + 1; track++)
|
for (track = 1; track < ZoneTracks[zone] + 1; track++)
|
||||||
{
|
{
|
||||||
if ((ZoneTracks[zone] - track) == SystemData[0x20 + (zone)* 0xC + atrack])
|
if (atrack > -1 && (ZoneTracks[zone] - track) == SystemData[0x20 + (zone)* 0xC + atrack])
|
||||||
{
|
{
|
||||||
memset((void *)(&BlockData0), 0, BLOCKSIZE(zone));
|
memset((void *)(&BlockData0), 0, BLOCKSIZE(zone));
|
||||||
memset((void *)(&BlockData1), 0, BLOCKSIZE(zone));
|
memset((void *)(&BlockData1), 0, BLOCKSIZE(zone));
|
||||||
|
|
Loading…
Reference in New Issue