|
From: <ka...@us...> - 2012-05-13 13:50:59
|
Revision: 3772
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3772&view=rev
Author: kappa1
Date: 2012-05-13 13:50:52 +0000 (Sun, 13 May 2012)
Log Message:
-----------
AppletLoader: fixed issue with applets on linux with Java 7 where the natives where LWJGL natives were failing to load.
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java
Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2012-05-13 12:11:12 UTC (rev 3771)
+++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2012-05-13 13:50:52 UTC (rev 3772)
@@ -1222,7 +1222,13 @@
// allow non lwjgl native to be found from cache directory
protected String findLibrary (String libname) {
- return path + "natives" + File.separator + System.mapLibraryName(libname);
+ String libPath = path + "natives" + File.separator + System.mapLibraryName(libname);
+
+ if (new File(libPath).exists()) {
+ return libPath;
+ }
+
+ return super.findLibrary(libname);
}
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|