mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-11-29 11:49:29 +00:00
tidying
This commit is contained in:
parent
9104389d22
commit
87626f2424
@ -85,8 +85,8 @@ public class FileEntry extends CatalogEntry
|
||||
{
|
||||
DefaultMutableTreeNode segmentNode = new DefaultMutableTreeNode (
|
||||
new PascalCodeObject (parent, pascalSegment, firstBlock));
|
||||
node.add (segmentNode);
|
||||
segmentNode.setAllowsChildren (false);
|
||||
node.add (segmentNode);
|
||||
}
|
||||
}
|
||||
catch (FileFormatException e)
|
||||
@ -95,6 +95,7 @@ public class FileEntry extends CatalogEntry
|
||||
file = new AssemblerProgram (name, buffer, 0xD000);
|
||||
else
|
||||
file = new AssemblerProgram (name, buffer, 0);
|
||||
node.setAllowsChildren (false);
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -103,19 +103,10 @@ public class PascalDisk extends AbstractFormattedDisk
|
||||
DefaultMutableTreeNode node = new DefaultMutableTreeNode (fileEntry);
|
||||
fileEntry.setNode (node);
|
||||
|
||||
if (fileEntry.fileType == 2)// && dataSource instanceof PascalCode)
|
||||
if (fileEntry.fileType == 2)
|
||||
{
|
||||
node.setAllowsChildren (true);
|
||||
// this does not trigger correctly when opening the arrow
|
||||
|
||||
// PascalCode pascalCode = (PascalCode) dataSource;
|
||||
// for (PascalSegment pascalSegment : pascalCode)
|
||||
// {
|
||||
// DefaultMutableTreeNode segmentNode = new DefaultMutableTreeNode (
|
||||
// new PascalCodeObject (this, pascalSegment, fileEntry.firstBlock));
|
||||
// node.add (segmentNode);
|
||||
// segmentNode.setAllowsChildren (false);
|
||||
// }
|
||||
fileEntry.getDataSource ();
|
||||
}
|
||||
else
|
||||
node.setAllowsChildren (false);
|
||||
|
@ -37,6 +37,12 @@ public class Wizardry4BootDisk extends PascalDisk
|
||||
relocator.createNewBuffer (dataDisks);
|
||||
fileEntry.setFile (relocator);
|
||||
}
|
||||
|
||||
// reset the code segment so that it rebuilds itself from the new data
|
||||
DefaultMutableTreeNode pascalNode = findNode (currentRoot, "SYSTEM.PASCAL");
|
||||
fileEntry = (FileEntry) pascalNode.getUserObject ();
|
||||
fileEntry.setFile (null);
|
||||
fileEntry.getDataSource ();
|
||||
}
|
||||
|
||||
public static boolean isWizardryIV (Disk disk, boolean debug)
|
||||
|
Loading…
Reference in New Issue
Block a user