Compare commits

...

2 Commits

Author SHA1 Message Date
Denis Molony
2bc330e377 tidying 2024-05-07 08:34:02 +10:00
Denis Molony
6c81bcc93b allow dos 4.5 2024-05-07 08:28:33 +10:00
3 changed files with 8 additions and 5 deletions

View File

@ -418,7 +418,8 @@ public class DiskFactory
if (length != DISK_143K) // 16 sector floppy disk
{
System.out.printf ("%s: invalid file length : %,d%n", file.getName (), file.length ());
System.out.printf ("%s: invalid file length : %,d%n", file.getName (),
file.length ());
return null;
}
@ -578,8 +579,8 @@ public class DiskFactory
disk = new DataDisk (appleDisk256);
if (debug)
System.out
.println ("Factory creating disk : " + disk.getDisk ().getFile ().getAbsolutePath ());
System.out.println (
"Factory creating disk : " + disk.getDisk ().getFile ().getAbsolutePath ());
if (disk != null && compressed)
disk.setOriginalPath (originalPath);

View File

@ -326,6 +326,8 @@ public class DosDisk extends AbstractFormattedDisk
return "4.2";
case 0x43:
return "4.3";
case 0x45:
return "4.5";
default:
return "??";
}
@ -376,7 +378,7 @@ public class DosDisk extends AbstractFormattedDisk
int version = buffer[3] & 0xFF;
if (debug)
System.out.printf ("Version: %02X%n", buffer[3]);
if (version == 0 || (version > 0x43 && version != 0xFF))
if (version == 0 || (version > 0x45 && version != 0xFF))
{
if (debug)
System.out.printf ("Bad version : %02X%n", version);

View File

@ -96,7 +96,7 @@ public class NuFX
if (record.hasDisk ())
++totalDisks;
}
System.out.println (toString ());
// System.out.println (toString ());
}
// ---------------------------------------------------------------------------------//