mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-12-21 19:29:20 +00:00
allow dos 4.5
This commit is contained in:
parent
171fd66ba1
commit
6c81bcc93b
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user