mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Fixes embedded library name used for extraction in Java (#45)
This commit is contained in:
committed by
Peter Johnson
parent
e9fcb5381a
commit
d47bd1ecbc
@@ -34,11 +34,11 @@ public class CameraServerJNI {
|
||||
resname = "/" + osname + "/" + System.getProperty("os.arch") + "/";
|
||||
System.out.println("platform: " + resname);
|
||||
if (osname.startsWith("Windows"))
|
||||
resname += "cameraserver.dll";
|
||||
resname += "cscore.dll";
|
||||
else if (osname.startsWith("Mac"))
|
||||
resname += "libcameraserver.dylib";
|
||||
resname += "libcscore.dylib";
|
||||
else
|
||||
resname += "libcameraserver.so";
|
||||
resname += "libcscore.so";
|
||||
InputStream is = CameraServerJNI.class.getResourceAsStream(resname);
|
||||
if (is != null) {
|
||||
// create temporary file
|
||||
|
||||
Reference in New Issue
Block a user