mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2025-02-20 04:29:02 +00:00
tidying
This commit is contained in:
parent
b98ecbed8d
commit
23b95675cf
@ -44,15 +44,13 @@ public class Binary2
|
||||
{
|
||||
binary2Header = new Binary2Header (buffer, ptr);
|
||||
|
||||
totalBlocks += binary2Header.totalBlocks;
|
||||
ptr += ((binary2Header.eof - 1) / 128 + 2) * 128;
|
||||
|
||||
if (ptr > buffer.length) // not enough blocks for this file
|
||||
break;
|
||||
|
||||
totalBlocks += binary2Header.totalBlocks;
|
||||
headers.add (binary2Header);
|
||||
} while (binary2Header.filesToFollow > 0);
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------//
|
||||
|
@ -549,6 +549,8 @@ class FileEntry extends CatalogEntry implements ProdosConstants
|
||||
case FILE_TYPE_NON:
|
||||
if (name.endsWith (".TIFF") && HiResImage.isTiff (exactBuffer))
|
||||
file = new OriginalHiResImage (name, exactBuffer, auxType);
|
||||
else if (name.endsWith (".JAVA"))
|
||||
file = new BasicTextFile (name, exactBuffer, auxType, endOfFile);
|
||||
else
|
||||
file = new DefaultAppleFile (name, exactBuffer);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user