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:
parent
5f1efa0de3
commit
afaf86df66
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue