System.out.println((new File(getPrefs().getValue( romType + ".expRomPath")).length()) + " == " + Rom.EB_ROM_SIZE_REGULAR + "; romType = " + romType); if (romType.equals("Earthbound") && new File(getPrefs().getValue(romType + ".expRomPath")).length() == Rom.EB_ROM_SIZE_REGULAR) { System.out .println("Exp rom not actually expanded. Bug in previous versions."); this.getPrefs().setValue(romType + ".orgRomPath", getPrefs().getValue(romType + ".expRomPath")); this.getPrefs().removeValue(romType + ".expRomPath"); return orgRomToExp(romType); }
    public Rom requestOrgRomFile(String romType)    {        String tmp;        File tmpf;        if ((tmp = this.getPrefs().getValue(romType + ".expRomPath")) == null            || !(tmpf = new File(tmp)).exists())        {            //if orgRomPath from old version set, use it            if ((tmp = this.getPrefs().getValue(romType + ".orgRomPath")) != null                && (tmpf = new File(tmp)).exists()) { return orgRomToExp(romType); }            this.getPrefs().setValue(                romType + ".expRomPath",                (tmpf = getFile("Select a unmodified or expanded " + romType                    + " ROM.", true)).toString());            if (romType == "Earthbound"                && tmpf.length() == Rom.EB_ROM_SIZE_REGULAR)            {                this.getPrefs().setValue(romType + ".orgRomPath",                    tmpf.toString());                return orgRomToExp(romType);            }        }        //null means expRomPath is set to something valid        return null;    }