mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-04 14:07:53 +00:00
Rather than crashing, just disable the plugin if we an't load the dll
This commit is contained in:
parent
69a2984615
commit
0015c724b3
2 changed files with 14 additions and 8 deletions
|
|
@ -88,16 +88,17 @@ public final class LinuxEnvironmentPlugin extends ControllerEnvironment implemen
|
|||
static {
|
||||
String osName = getPrivilegedProperty("os.name", "").trim();
|
||||
if(osName.equals("Linux")) {
|
||||
supported = true;
|
||||
try {
|
||||
loadLibrary(LIBNAME);
|
||||
supported = true;
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
try {
|
||||
loadLibrary(LIBNAME + POSTFIX64BIT);
|
||||
supported = true;
|
||||
} catch (UnsatisfiedLinkError e2) {
|
||||
logln("Failed to load 64 bit library: " + e2.getMessage());
|
||||
// throw original error
|
||||
throw e;
|
||||
e.printStackTrace();
|
||||
supported = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue