allow dos 4.5

This commit is contained in:
Denis Molony 2024-05-07 08:28:33 +10:00
parent 171fd66ba1
commit 6c81bcc93b
2 changed files with 7 additions and 4 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);