"Do you want JHack to check for updates\n"
"Do you want PK Hack to check for updates\n"
    private void loadPrefs()    {        rom = new RomMem();        File xmlFile = new File(JHack.JHACK_DIR.toString() + File.separator            + "JHackPrefs.xml");        HashMap iniPrefs = new HashMap();        if (!xmlFile.exists())        {            try            {                String[] input = new CommentedLineNumberReader("JHack.ini")                    .readUsedLines();                for (int i = 0; i < input.length; i++)                {                    String[] split = input[i].split("=");                    split[0] = split[0].trim();                    split[1] = split[1].trim();                    iniPrefs.put(split[0], split[1]);                }            }            catch (FileNotFoundException e)            {                iniPrefs.put("useHexNumbers", Boolean.toString(true));                iniPrefs.put("useDirectFileIO", Boolean.toString(false));            }            catch (IOException e)            {                e.printStackTrace();                iniPrefs.put("useHexNumbers", Boolean.toString(true));                iniPrefs.put("useDirectFileIO", Boolean.toString(false));            }        }        this.prefs = new XMLPreferences(xmlFile, iniPrefs);        try        {            if (this.getPrefs().getValueAsBoolean("useDirectFileIO"))            {                rom = new RomFileIO();            }        }        catch (NullPointerException e)        {}        try        {            try            {                UIManager.setLookAndFeel(prefs.getValue("laf"));            }            catch (NullPointerException e)            {                System.out                    .println("No look and feel preference found, using default.");                UIManager.setLookAndFeel(UIManager                    .getSystemLookAndFeelClassName());            }            finally            {                JHack.out.updateUI();                JHack.err.updateUI();            }        }        catch (Exception e)        {            System.out.println("Error loading look and feel preference.");            e.printStackTrace();        }        if (!this.getPrefs().hasValue("checkVersion"))        {            int ques = JOptionPane.showConfirmDialog(null,                "Do you want JHack to check for updates\n"                    + "automatically on startup?\n"                    + "NOTE: This accesses AnyoneEB's server and\n"                    + "could (but won't) be used to gather usage\n"                    + "statistics if enabled.",                "Check for updates automatically?", JOptionPane.YES_NO_OPTION);            this.getPrefs().setValueAsBoolean("checkVersion",                ques == JOptionPane.YES_OPTION);        }        if (this.getPrefs().hasValue("consoleDialog"))        {            if (!JHack.isUseConsole())                JHack.out.setEnabled(this.getPrefs().getValueAsBoolean(                    "consoleDialog"));        }        if (this.getPrefs().hasValue("noErrorDialog"))        {        	if (!JHack.isUseConsole())        		JHack.err.setEnabled(! this.getPrefs().getValueAsBoolean(        				"noErrorDialog"));        }        //convert expRomPath and orgRomPath to game specific names        if (this.getPrefs().hasValue("expRomPath"))        {            this.getPrefs().setValue("Earthbound.expRomPath",                getPrefs().getValue("expRomPath"));            this.getPrefs().removeValue("expRomPath");        }        if (this.getPrefs().hasValue("orgRomPath"))        {            this.getPrefs().setValue("Earthbound.orgRomPath",                getPrefs().getValue("orgRomPath"));            this.getPrefs().removeValue("orgRomPath");        }        if (this.getPrefs().getValueAsBoolean("checkVersion"))        {            askToUpdate();        }        loadRecentLoadsPref();        //delete old prefs        new File("JHack.ini").delete();        new File("JHackPrefs.xml").delete();        //new File("preferences.dtd").delete();    }