Explorar o código

Added temporary debug in case separator characters mess things up.

Ludwig Tietze %!s(int64=7) %!d(string=hai) anos
pai
achega
95dbabebe6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/ui/view/Util.java

+ 1 - 0
src/ui/view/Util.java

@@ -74,6 +74,7 @@ public class Util {
 				//Mixed separators should cause problems. Will fix later.
 				File f=new File(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);
 			} catch (FileNotFoundException e1) {
 				e1.printStackTrace();