JavaOpenCL64
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package club.doki7.ffm.library;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public enum JavaSystemLibraryLoader implements ILibraryLoader {
|
||||
INSTANCE;
|
||||
|
||||
@Override
|
||||
public @NotNull ISharedLibrary loadLibrary(@NotNull String libName) throws UnsatisfiedLinkError {
|
||||
try {
|
||||
System.loadLibrary(libName);
|
||||
} catch (Throwable e) {
|
||||
System.load(libName);
|
||||
}
|
||||
return JavaSystemLibrary.INSTANCE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user