added -reset option

This commit is contained in:
Denis Molony 2019-04-08 18:25:52 +10:00
parent af9786fb42
commit e8ae7a9cb9
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import com.bytezone.diskbrowser.duplicates.RootFolderData;
public class DiskBrowser extends JFrame implements DiskSelectionListener, QuitListener
{
private static String[] args;
private static final String windowTitle = "Apple ][ Disk Browser";
private final Preferences prefs = Preferences.userNodeForPackage (this.getClass ());
private WindowSaver windowSaver;
@ -26,7 +27,7 @@ public class DiskBrowser extends JFrame implements DiskSelectionListener, QuitLi
{
super (windowTitle);
if (false)
if (args.length > 0 && "-reset".equals (args[0]))
{
State state = new State (prefs);
state.clear ();
@ -202,6 +203,7 @@ public class DiskBrowser extends JFrame implements DiskSelectionListener, QuitLi
public static void main (String[] args)
{
DiskBrowser.args = args;
EventQueue.invokeLater (new Runnable ()
{
@Override

View File

@ -36,6 +36,7 @@ class MC3470
// D4 AA 96 address prologue - Bouncing Kamungas
// D5 BB CF data prologue - Hard Hat Mac
// DA AA EB address epilogue - Bouncing Kamungas
// DD AA AD ?? prologue - Wings of Fury (4&4 data)
private static final byte[] address16prologue =
{ (byte) 0xD5, (byte) 0xAA, (byte) 0x96 };