X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fxwt%2FResources.java;h=e1e267f7944ccf8caafa013339b9f33cc952a1db;hp=7e881b15cc03c5facb9123968d3be96e3c288679;hb=b32cea3f3e272ab00899d134d75a8bd7bcf6c8c0;hpb=6d2f9fba912164ddc3024078aab83258a9d9e522 diff --git a/src/org/xwt/Resources.java b/src/org/xwt/Resources.java index 7e881b1..e1e267f 100644 --- a/src/org/xwt/Resources.java +++ b/src/org/xwt/Resources.java @@ -48,8 +48,8 @@ public class Resources { /** Load a directory as if it were an archive */ public static synchronized void loadDirectory(File dir) throws IOException { loadDirectory(dir, ""); } private static synchronized void loadDirectory(File dir, String prefix) throws IOException { - String n = prefix.replace(File.separatorChar, '.'); - if (n.endsWith(".")) n = n.substring(0, n.length() - 1); + String n = prefix.replace(File.separatorChar, '.'); + if (n.endsWith(".")) n = n.substring(0, n.length() - 1); new Static(n); String[] subfiles = dir.list(); for(int i=0; i