OpenAL: Don't use System.mapLibraryName
This commit is contained in:
parent
7251a38930
commit
7986b0abef
|
@ -138,18 +138,20 @@ public final class AL {
|
|||
String osName = System.getProperty("os.name");
|
||||
|
||||
String libname;
|
||||
String platform_lib_name;
|
||||
if (osName.startsWith("Win")) {
|
||||
libname = "lwjglaudio";
|
||||
platform_lib_name = "lwjglaudio.dll";
|
||||
} else if (osName.startsWith("Lin")) {
|
||||
libname = "openal";
|
||||
platform_lib_name = "libopenal.so";
|
||||
} else if (osName.startsWith("Mac")) {
|
||||
libname = "openal";
|
||||
platform_lib_name = "openal.dylib";
|
||||
} else {
|
||||
throw new LWJGLException("Unknown platform: "+osName);
|
||||
}
|
||||
|
||||
String platform_lib_name = System.mapLibraryName(libname);
|
||||
|
||||
// Add all possible paths from java.library.path
|
||||
String java_library_path = System.getProperty("java.library.path");
|
||||
StringTokenizer st = new StringTokenizer(System.getProperty("java.library.path"), File.pathSeparator);
|
||||
|
|
Loading…
Reference in New Issue