mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2025-01-03 13:31:44 +00:00
tidying
This commit is contained in:
parent
03a38e11f0
commit
e216a805ad
@ -251,7 +251,7 @@ public class DiskFactory
|
||||
{
|
||||
if (debug)
|
||||
System.out.println ("Checking woz 3.5");
|
||||
AppleDisk disk800 = new AppleDisk (wozFile, 200, 8);
|
||||
AppleDisk disk800 = new AppleDisk (wozFile, 100 * wozFile.getSides (), 8);
|
||||
if (ProdosDisk.isCorrectFormat (disk800))
|
||||
{
|
||||
if (debug)
|
||||
|
@ -28,7 +28,7 @@ public class DiskReaderGCR extends DiskReader
|
||||
// ROL first checksum
|
||||
checksums[0] = (checksums[0] & 0xFF) << 1; // shift left
|
||||
if ((checksums[0] > 0xFF)) // check for overflow
|
||||
++checksums[0]; // update bit 0
|
||||
++checksums[0]; // set bit 0
|
||||
|
||||
// 6&2 translation
|
||||
byte d3 = byteTranslator.decode (inBuffer[inPtr++]); // composite byte
|
||||
|
@ -138,6 +138,13 @@ public class WozFile
|
||||
return info.diskType;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------//
|
||||
public int getSides ()
|
||||
// ---------------------------------------------------------------------------------//
|
||||
{
|
||||
return info.sides;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------//
|
||||
public int getTracks ()
|
||||
// ---------------------------------------------------------------------------------//
|
||||
|
Loading…
Reference in New Issue
Block a user