Updated to allow zero block entries that have the same first and last block.

This commit is contained in:
Rob Greene
2025-12-20 13:46:09 -06:00
parent 04c8056345
commit 344f4ddb78

View File

@@ -74,7 +74,8 @@ public class PascalDiskFactory implements DiskFactory {
int fNameLength = dir.getUnsignedByte(offset+6);
int fBytesLastBlock = dir.getUnsignedShort(offset+22);
if (fNameLength == 0) break; // last entry?
good = fFirstBlock < fLastBlock
// There appear to be some zero block entries that have the same first and last block
good = fFirstBlock <= fLastBlock
&& fLastBlock <= dBlocksOnDisk
&& (fEntryType & 0x7fff) < 9
&& fNameLength < 16