This commit is contained in:
Denis Molony 2022-08-22 16:55:32 +10:00
parent b98ecbed8d
commit 23b95675cf
2 changed files with 3 additions and 3 deletions

View File

@ -44,15 +44,13 @@ public class Binary2
{ {
binary2Header = new Binary2Header (buffer, ptr); binary2Header = new Binary2Header (buffer, ptr);
totalBlocks += binary2Header.totalBlocks;
ptr += ((binary2Header.eof - 1) / 128 + 2) * 128; ptr += ((binary2Header.eof - 1) / 128 + 2) * 128;
if (ptr > buffer.length) // not enough blocks for this file if (ptr > buffer.length) // not enough blocks for this file
break; break;
totalBlocks += binary2Header.totalBlocks;
headers.add (binary2Header); headers.add (binary2Header);
} while (binary2Header.filesToFollow > 0); } while (binary2Header.filesToFollow > 0);
} }
// ---------------------------------------------------------------------------------// // ---------------------------------------------------------------------------------//

View File

@ -549,6 +549,8 @@ class FileEntry extends CatalogEntry implements ProdosConstants
case FILE_TYPE_NON: case FILE_TYPE_NON:
if (name.endsWith (".TIFF") && HiResImage.isTiff (exactBuffer)) if (name.endsWith (".TIFF") && HiResImage.isTiff (exactBuffer))
file = new OriginalHiResImage (name, exactBuffer, auxType); file = new OriginalHiResImage (name, exactBuffer, auxType);
else if (name.endsWith (".JAVA"))
file = new BasicTextFile (name, exactBuffer, auxType, endOfFile);
else else
file = new DefaultAppleFile (name, exactBuffer); file = new DefaultAppleFile (name, exactBuffer);
break; break;