AppletLoader: set java.library.path to the folder containing natives, this should make it easier when using extra custom native files.

This commit is contained in:
kappa1 2010-08-28 12:04:55 +00:00
parent 020a55d74f
commit bca5e48ea7
1 changed files with 3 additions and 0 deletions

View File

@ -892,6 +892,9 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
// Make sure jinput knows about the new path too
System.setProperty("net.java.games.input.librarypath", path + "natives");
// set the library path, should make it easier when using additional custom natives
System.setProperty("java.library.path", path + "natives");
// mark natives as loaded
natives_loaded = true;
}