ソースを参照

* On Windows, forcefully load our version of OpenAL to prevent any currently installed versions in System32 from overriding it
* Increase buffer size used to extract natives from 1 KB to 100 KB to speed up extraction

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10846 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

sha..RD 12 年 前
コミット
27a4d4d268
1 ファイル変更3 行追加3 行削除
  1. 3 3
      engine/src/desktop/com/jme3/system/Natives.java

+ 3 - 3
engine/src/desktop/com/jme3/system/Natives.java

@@ -45,7 +45,7 @@ import java.util.logging.Logger;
 public final class Natives {
 
     private static final Logger logger = Logger.getLogger(Natives.class.getName());
-    private static final byte[] buf = new byte[1024];
+    private static final byte[] buf = new byte[1024 * 100];
     private static File extractionDirOverride = null;
     private static File extractionDir = null;
 
@@ -258,7 +258,7 @@ public final class Natives {
                     extractNativeLib("windows", "lwjgl64");
                 }
                 if (needOAL) {
-                    extractNativeLib("windows", "OpenAL64");
+                    extractNativeLib("windows", "OpenAL64", true, false);
                 }
                 if (needJInput) {
                     extractNativeLib("windows", "jinput-dx8_64");
@@ -273,7 +273,7 @@ public final class Natives {
                     extractNativeLib("windows", "lwjgl");
                 }
                 if (needOAL) {
-                    extractNativeLib("windows", "OpenAL32");
+                    extractNativeLib("windows", "OpenAL32", true, false);
                 }
                 if (needJInput) {
                     extractNativeLib("windows", "jinput-dx8");