mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-06 03:31:43 +00:00
Merge pull request #48 from ThadHouse/master
Load ntcore from path if extracted load fails
This commit is contained in:
@@ -51,8 +51,11 @@ public class NetworkTablesJNI {
|
||||
os.close();
|
||||
is.close();
|
||||
}
|
||||
|
||||
System.load(jniLibrary.getAbsolutePath());
|
||||
try {
|
||||
System.load(jniLibrary.getAbsolutePath());
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.loadLibrary("ntcore");
|
||||
}
|
||||
} else {
|
||||
System.loadLibrary("ntcore");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user