- add hack to natives extraction to extract .jnilib named libraries from jar on OSX systems running Java 10.7+ (which uses .dylib suffxies)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9632 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent e3e6c90a49
commit 382c3da1a4
  1. 4
      engine/src/desktop/com/jme3/system/Natives.java

@ -121,6 +121,10 @@ public final class Natives {
String fullname = System.mapLibraryName(name);
String path = "native/" + sysName + "/" + fullname;
//XXX: Hack to extract jnilib to dylib on OSX Java 1.7+
if(sysName.equals("macosx")){
path = path.replaceAll("dylib","jnilib");
}
URL url = Thread.currentThread().getContextClassLoader().getResource(path);
if (url == null) {

Loading…
Cancel
Save