|
@@ -74,6 +74,7 @@ public class Util {
|
|
//Mixed separators should cause problems. Will fix later.
|
|
//Mixed separators should cause problems. Will fix later.
|
|
File f=new File(url);
|
|
File f=new File(url);
|
|
if(!f.exists()||!f.getAbsolutePath().equals(url))url="res"+(rootSymbol?"":"/")+url;
|
|
if(!f.exists()||!f.getAbsolutePath().equals(url))url="res"+(rootSymbol?"":"/")+url;
|
|
|
|
+ else if(f.exists())System.out.println("Urls+ \""+url+"\" and \""+f.getAbsolutePath()+"\" Do not match, even though the latter seems to exist.\nThis should not happen.");
|
|
return new FileInputStream(url);
|
|
return new FileInputStream(url);
|
|
} catch (FileNotFoundException e1) {
|
|
} catch (FileNotFoundException e1) {
|
|
e1.printStackTrace();
|
|
e1.printStackTrace();
|