mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-12-01 09:50:32 +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 (
|
DefaultMutableTreeNode segmentNode = new DefaultMutableTreeNode (
|
||||||
new PascalCodeObject (parent, pascalSegment, firstBlock));
|
new PascalCodeObject (parent, pascalSegment, firstBlock));
|
||||||
node.add (segmentNode);
|
|
||||||
segmentNode.setAllowsChildren (false);
|
segmentNode.setAllowsChildren (false);
|
||||||
|
node.add (segmentNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (FileFormatException e)
|
catch (FileFormatException e)
|
||||||
@ -95,6 +95,7 @@ public class FileEntry extends CatalogEntry
|
|||||||
file = new AssemblerProgram (name, buffer, 0xD000);
|
file = new AssemblerProgram (name, buffer, 0xD000);
|
||||||
else
|
else
|
||||||
file = new AssemblerProgram (name, buffer, 0);
|
file = new AssemblerProgram (name, buffer, 0);
|
||||||
|
node.setAllowsChildren (false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -103,19 +103,10 @@ public class PascalDisk extends AbstractFormattedDisk
|
|||||||
DefaultMutableTreeNode node = new DefaultMutableTreeNode (fileEntry);
|
DefaultMutableTreeNode node = new DefaultMutableTreeNode (fileEntry);
|
||||||
fileEntry.setNode (node);
|
fileEntry.setNode (node);
|
||||||
|
|
||||||
if (fileEntry.fileType == 2)// && dataSource instanceof PascalCode)
|
if (fileEntry.fileType == 2)
|
||||||
{
|
{
|
||||||
node.setAllowsChildren (true);
|
node.setAllowsChildren (true);
|
||||||
// this does not trigger correctly when opening the arrow
|
fileEntry.getDataSource ();
|
||||||
|
|
||||||
// PascalCode pascalCode = (PascalCode) dataSource;
|
|
||||||
// for (PascalSegment pascalSegment : pascalCode)
|
|
||||||
// {
|
|
||||||
// DefaultMutableTreeNode segmentNode = new DefaultMutableTreeNode (
|
|
||||||
// new PascalCodeObject (this, pascalSegment, fileEntry.firstBlock));
|
|
||||||
// node.add (segmentNode);
|
|
||||||
// segmentNode.setAllowsChildren (false);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
node.setAllowsChildren (false);
|
node.setAllowsChildren (false);
|
||||||
|
@ -37,6 +37,12 @@ public class Wizardry4BootDisk extends PascalDisk
|
|||||||
relocator.createNewBuffer (dataDisks);
|
relocator.createNewBuffer (dataDisks);
|
||||||
fileEntry.setFile (relocator);
|
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)
|
public static boolean isWizardryIV (Disk disk, boolean debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user