#include <jni.h>
#include <BNM/Loading.hpp>
void OnLoaded_Example_01();
void OnLoaded_Example_02();
void OnLoaded_Example_03();
void OnLoaded_Example_04();
void OnLoaded_Example_05();
void OnLoaded_Example_06();
void OnLoaded_Example_08();
void Example_07();
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, [[maybe_unused]] void *reserved) {
JNIEnv *env;
vm->GetEnv((void **) &env, JNI_VERSION_1_6);
return JNI_VERSION_1_6;
}
bool TryLoadByJNI(JNIEnv *env, jobject context=nullptr)
Try load BNM using JNI.
void AddOnLoadedEvent(void(*event)())
Add event that will be called from il2cpp thread when il2cpp and BNM will be fully loaded.