AppletLoader: fixed issue with applets on linux with Java 7 where the natives where LWJGL natives were failing to load.

This commit is contained in:
kappa1 2012-05-13 13:50:52 +00:00
parent 5f1efa0de3
commit afaf86df66
1 changed files with 7 additions and 1 deletions

View File

@ -1222,7 +1222,13 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
// 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);
}
};