added a screenshot
This commit is contained in:
parent
904db9632c
commit
aa1e661056
|
@ -36,6 +36,8 @@
|
||||||
![Pascal](resources/pascal.png?raw=true "Pascal")
|
![Pascal](resources/pascal.png?raw=true "Pascal")
|
||||||
#### Zork
|
#### Zork
|
||||||
![Zork](resources/zork.png?raw=true "Zork")
|
![Zork](resources/zork.png?raw=true "Zork")
|
||||||
|
#### Infocom
|
||||||
|
![Infocom](resources/planetfall.png?raw=true "Zork")
|
||||||
#### Wizardry
|
#### Wizardry
|
||||||
![Wizardry](resources/wizardry.png?raw=true "Wizardry")
|
![Wizardry](resources/wizardry.png?raw=true "Wizardry")
|
||||||
#### Visicalc
|
#### Visicalc
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 820 KiB |
|
@ -8,7 +8,6 @@ import com.bytezone.diskbrowser.applefile.*;
|
||||||
import com.bytezone.diskbrowser.appleworks.AppleworksADBFile;
|
import com.bytezone.diskbrowser.appleworks.AppleworksADBFile;
|
||||||
import com.bytezone.diskbrowser.appleworks.AppleworksSSFile;
|
import com.bytezone.diskbrowser.appleworks.AppleworksSSFile;
|
||||||
import com.bytezone.diskbrowser.appleworks.AppleworksWPFile;
|
import com.bytezone.diskbrowser.appleworks.AppleworksWPFile;
|
||||||
import com.bytezone.diskbrowser.disk.Disk;
|
|
||||||
import com.bytezone.diskbrowser.disk.DiskAddress;
|
import com.bytezone.diskbrowser.disk.DiskAddress;
|
||||||
import com.bytezone.diskbrowser.gui.DataSource;
|
import com.bytezone.diskbrowser.gui.DataSource;
|
||||||
import com.bytezone.diskbrowser.utilities.HexFormatter;
|
import com.bytezone.diskbrowser.utilities.HexFormatter;
|
||||||
|
@ -32,17 +31,15 @@ class FileEntry extends CatalogEntry implements ProdosConstants
|
||||||
private final List<DiskAddress> indexBlocks = new ArrayList<DiskAddress> ();
|
private final List<DiskAddress> indexBlocks = new ArrayList<DiskAddress> ();
|
||||||
private boolean invalid;
|
private boolean invalid;
|
||||||
private FileEntry link;
|
private FileEntry link;
|
||||||
// private final int maxBlocks;
|
|
||||||
|
|
||||||
private final Disk appleDisk;
|
// private final Disk appleDisk;
|
||||||
|
|
||||||
public FileEntry (ProdosDisk fDisk, byte[] entryBuffer, DirectoryHeader parent,
|
public FileEntry (ProdosDisk fDisk, byte[] entryBuffer, DirectoryHeader parent,
|
||||||
int parentBlock)
|
int parentBlock)
|
||||||
{
|
{
|
||||||
super (fDisk, entryBuffer);
|
super (fDisk, entryBuffer);
|
||||||
|
|
||||||
// maxBlocks = fDisk.getDisk ().getTotalBlocks ();
|
// appleDisk = fDisk.getDisk ();
|
||||||
appleDisk = fDisk.getDisk ();
|
|
||||||
|
|
||||||
assert parent != null;
|
assert parent != null;
|
||||||
this.parentDirectory = parent;
|
this.parentDirectory = parent;
|
||||||
|
@ -128,16 +125,20 @@ class FileEntry extends CatalogEntry implements ProdosConstants
|
||||||
switch (storageType)
|
switch (storageType)
|
||||||
{
|
{
|
||||||
case SEEDLING:
|
case SEEDLING:
|
||||||
blocks.add (keyPtr);
|
if (disk.isValidAddress (keyPtr))
|
||||||
|
blocks.add (keyPtr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SAPLING:
|
case SAPLING:
|
||||||
blocks.addAll (readIndex (keyPtr));
|
if (disk.isValidAddress (keyPtr))
|
||||||
|
blocks.addAll (readIndex (keyPtr));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TREE:
|
case TREE:
|
||||||
for (Integer indexBlock : readMasterIndex (keyPtr))
|
if (disk.isValidAddress (keyPtr))
|
||||||
blocks.addAll (readIndex (indexBlock));
|
for (Integer indexBlock : readMasterIndex (keyPtr))
|
||||||
|
if (disk.isValidAddress (indexBlock))
|
||||||
|
blocks.addAll (readIndex (indexBlock));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue