allow slightly too large floppies

This commit is contained in:
Denis Molony 2017-03-20 15:19:41 +11:00
parent 0084f93d4a
commit 7eb21ec5b7

View File

@ -190,6 +190,14 @@ public class DiskFactory
if (((suffix.equals ("po") || suffix.equals ("dsk")) && file.length () > 143360))
{
if (file.length () < 143500) // slightly bigger than a floppy
{
System.out.println ("File length is wrong: " + file.length ());
disk = checkDos (new AppleDisk (file, 35, 16));
if (disk != null)
return disk;
}
if (debug)
System.out.println (" Checking po or dsk hard drive: " + file.length ());