main = new MainGUI(); if (!main.getPrefs().hasValue("autoLoad") || main.getPrefs().getValueAsBoolean("autoLoad")) main.loadLastRom();
main = new MainGUI(!justPatching);  if (justPatching) { AbstractRom r = new RomMem(); r.loadRom(new File(rom)); if (size == 32) r.expand(); else if (size == 48) r.expandEx(); r.apply(IPSFile.loadIPSFile(new File(patch))); r.saveRom(); System.exit(0); } else {  if (!main.getPrefs().hasValue("autoLoad") || main.getPrefs().getValueAsBoolean("autoLoad")) main.loadLastRom(); }
    public static void main(String[] args)    {        for (int i = 0; i < args.length; i++)            if (args[i].equals("-c") || args[i].equals("--console"))                useConsole = true;        String date = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());        out = new OutputStreamViewer("JHack Console", date, "out");        err = new OutputStreamViewer("JHack Error", date, "err");        if (!useConsole)        {            System.setOut(out.getPrintStream());            err.setError(true);            System.setErr(err.getPrintStream());        }        else        {            out.stop();            err.stop();            String logbasestr = JHACK_DIR.toString() + File.separator + "logs"                + File.separator + date;            File outlog = new File(logbasestr + ".out.log"), errlog = new File(                logbasestr + ".err.log");            if (outlog.exists())                while (!outlog.delete())                    ;            if (errlog.exists())                while (!errlog.delete())                    ;        }        main = new MainGUI();        if (!main.getPrefs().hasValue("autoLoad")            || main.getPrefs().getValueAsBoolean("autoLoad"))            main.loadLastRom();    }