static void loadDefaults() { RC rc0 = new RC(); String[] locations = new String[]{ System.getProperty("user.home"), System.getProperty("user.dir"), }; boolean found1 = false; for (String loc : locations) { if (loc == null) continue; String dir = loc.replace('\\', '/'); if (dir.endsWith("/")) dir = dir.substring(0, dir.length() - 1); for (String rcpath : rcfilelist) { String filepath = loc + "/" + rcpath; if (rc0.load(filepath)) found1 = true; } } if (!found1) if (showlog) log.debug("No .rc file found"); dfaltRC = rc0; }
static void loadDefaults() { RC rc0 = new RC(); String[] locations = new String[] { System.getProperty("user.home"), System.getProperty("user.dir"), }; boolean found1 = false; for(String loc: locations) { if(loc == null) continue; String dir = loc.replace('\\','/'); if(dir.endsWith("/")) dir = dir.substring(0,dir.length()-1); for(String rcpath: rcfilelist) { String filepath = loc + "/" + rcpath; if(rc0.load(filepath)) found1 = true; } } if(!found1) if(showlog) log.debug("No .rc file found"); dfaltRC = rc0; }
static void loadDefaults() { RC rc0 = new RC(); String[] locations = new String[] { System.getProperty("user.home"), System.getProperty("user.dir"), }; boolean found1 = false; for(String loc: locations) { if(loc == null) continue; String dir = loc.replace('\\','/'); if(dir.endsWith("/")) dir = dir.substring(0,dir.length()-1); for(String rcpath: rcfilelist) { String filepath = loc + "/" + rcpath; if(rc0.load(filepath)) found1 = true; } } if(!found1) if(showlog) log.debug("No .rc file found"); dfaltRC = rc0; }