|
|
@ -141,13 +141,22 @@ public class Natives { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected static boolean isUsingNativeBullet(){ |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
Class clazz = Class.forName("com.jme3.bullet.util.NativeMeshUtil"); |
|
|
|
|
|
|
|
return clazz != null; |
|
|
|
|
|
|
|
} catch (ClassNotFoundException ex) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected static void extractNativeLibs(Platform platform, AppSettings settings) throws IOException { |
|
|
|
protected static void extractNativeLibs(Platform platform, AppSettings settings) throws IOException { |
|
|
|
String renderer = settings.getRenderer(); |
|
|
|
String renderer = settings.getRenderer(); |
|
|
|
String audioRenderer = settings.getAudioRenderer(); |
|
|
|
String audioRenderer = settings.getAudioRenderer(); |
|
|
|
boolean needLWJGL = false; |
|
|
|
boolean needLWJGL = false; |
|
|
|
boolean needOAL = false; |
|
|
|
boolean needOAL = false; |
|
|
|
boolean needJInput = false; |
|
|
|
boolean needJInput = false; |
|
|
|
boolean needNativeBullet = true; |
|
|
|
boolean needNativeBullet = isUsingNativeBullet(); |
|
|
|
if (renderer != null) { |
|
|
|
if (renderer != null) { |
|
|
|
if (renderer.startsWith("LWJGL")) { |
|
|
|
if (renderer.startsWith("LWJGL")) { |
|
|
|
needLWJGL = true; |
|
|
|
needLWJGL = true; |
|
|
|