Forráskód Böngészése

Revert native loading changes

Kirill Vainer 9 éve
szülő
commit
7bf4949e83

+ 3 - 9
jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglContext.java

@@ -167,23 +167,17 @@ public abstract class LwjglContext implements JmeContext {
         if (JmeSystem.isLowPermissions()) {
             return;
         }
-
-        String extractPath = NativeLibraryLoader.getExtractionFolder().getAbsolutePath();
-
         if ("LWJGL".equals(settings.getAudioRenderer())) {
             NativeLibraryLoader.loadNativeLibrary("openal", true);
         }
         if (settings.useJoysticks()) {
-            System.setProperty("net.java.games.input.librarypath", extractPath);
-            NativeLibraryLoader.loadNativeLibrary("jinput", true, false);
-            NativeLibraryLoader.loadNativeLibrary("jinput-dx8", true, false);
+            NativeLibraryLoader.loadNativeLibrary("jinput", true);
+            NativeLibraryLoader.loadNativeLibrary("jinput-dx8", true);
         }
         if (NativeLibraryLoader.isUsingNativeBullet()) {
             NativeLibraryLoader.loadNativeLibrary("bulletjme", true);
         }
-
-        System.setProperty("org.lwjgl.librarypath", extractPath);
-        NativeLibraryLoader.loadNativeLibrary("lwjgl", true, false);
+        NativeLibraryLoader.loadNativeLibrary("lwjgl", true);
     }
 
     protected int getNumSamplesToUse() {