Browse code

better library loading log

devnewton authored on 29/07/2014 at 14:12:35
Showing 1 changed files
... ...
@@ -51,10 +51,12 @@ public class NormalLauncher {
51 51
 
52 52
         try {
53 53
             File nativeDir = new File(getApplicationDir(), "natives");
54
+            logger.log(Level.INFO, "Computed 'natives' folder: {0}", nativeDir);
54 55
             if (nativeDir.exists() && nativeDir.isDirectory() && nativeDir.list().length > 0) {
55 56
                 String nativePath = nativeDir.getCanonicalPath();
56 57
                 System.setProperty("org.lwjgl.librarypath", nativePath);
57 58
                 System.setProperty("net.java.games.input.librarypath", nativePath);
59
+                return;
58 60
             }
59 61
         } catch (IOException e) {
60 62
             logger.log(Level.WARNING, "error", e);