Sys.java:
private static void loadLibrary(final String lib_name) {
try {
doLoadLibrary(lib_name);
} catch (UnsatisfiedLinkError e) {
if (implementation.has64Bit()) {
try {
doLoadLibrary(lib_name + POSTFIX64BIT);
return;
} catch (UnsatisfiedLinkError e2) {
LWJGLUtil.log("Failed to load 64 bit library: " + e2.getMessage());
}
}
// Throw original error
throw e;
}
}
one could argue that if 64 bit is available for the implementation it would try that first.
something similar to this:
private static void loadLibrary(final String lib_name) {
if (implementation.has64Bit()) {
try {
doLoadLibrary(lib_name + POSTFIX64BIT);
return;
} catch (UnsatisfiedLinkError e2) {
LWJGLUtil.log("Failed to load 64 bit library: " + e2.getMessage());
}
}
try {
doLoadLibrary(lib_name);
} catch (UnsatisfiedLinkError e) {
// Throw original error
throw e;
}
}