Modify forceLoad to return isLoaded#2022
Modify forceLoad to return isLoaded#2022samfreund wants to merge 3 commits intoPhotonVision:mainfrom
Conversation
|
What? Forceload guarantees that the library is loaded if the program continues |
I'm not quite sure what you mean? ForceLoad from the JNICommon just attempts to load the libraries. The change made by this PR is just returning the success of that attempt, as a Boolean. |
|
The program should crash if it's not able to load the native library. That's why you use forceLoad |
If the shared objects are unable to be found, the program doesn't crash. We might also be talking about a different force load function, I'm specifically referring to the one that loads native libraries from the jar. |
079cb08 to
610f1e2
Compare
|
See here for more info. |
Description
forceLoad for JNIs will now return the isLoaded variable of a given JNI. This is then used in the main server script to log whether the JNI was succesfully created.
Meta
Merge checklist: