Skip to content

Commit

Permalink
Update vloader.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
CADIndie committed Nov 29, 2024
1 parent b802820 commit 6bd9f71
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/jni/vloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@

extern "C"
JNIEXPORT jlong JNICALL
Java_org_digitalgenesis_VLoader_getEGLDisplay(JNIEnv* env, jclass clazz) {
Java_org_vivecraft_util_VLoader_getEGLDisplay(JNIEnv* env, jclass clazz) {
return reinterpret_cast<jlong>(eglGetCurrentDisplay());
}

extern "C"
JNIEXPORT jlong JNICALL
Java_org_digitalgenesis_VLoader_getEGLContext(JNIEnv* env, jclass clazz) {
Java_org_vivecraft_util_VLoader_getEGLContext(JNIEnv* env, jclass clazz) {
return reinterpret_cast<jlong>(eglGetCurrentContext());
}

extern "C"
JNIEXPORT jlong JNICALL
Java_org_digitalgenesis_VLoader_getEGLConfig(JNIEnv* env, jclass clazz) {
Java_org_vivecraft_util_VLoader_getEGLConfig(JNIEnv* env, jclass clazz) {
EGLConfig cfg;
EGLint num_configs;

Expand All @@ -52,21 +52,21 @@ Java_org_digitalgenesis_VLoader_getEGLConfig(JNIEnv* env, jclass clazz) {

extern "C"
JNIEXPORT jlong JNICALL
Java_org_digitalgenesis_VLoader_getDalvikVM(JNIEnv* env, jclass clazz) {
Java_org_vivecraft_util_VLoader_getDalvikVM(JNIEnv* env, jclass clazz) {
return reinterpret_cast<jlong>(pojav_environ->dalvikJavaVMPtr);
}

extern "C"
JNIEXPORT jlong JNICALL
Java_org_digitalgenesis_VLoader_getDalvikActivity(JNIEnv* env, jclass clazz) {
Java_org_vivecraft_util_VLoader_getDalvikActivity(JNIEnv* env, jclass clazz) {
return reinterpret_cast<jlong>(pojav_environ->activity);
}

extern "C"
JNIEXPORT void JNICALL
Java_org_digitalgenesis_VLoader_setupAndroid(JNIEnv* env, jclass clazz) {
Java_org_vivecraft_util_VLoader_setupAndroid(JNIEnv* env, jclass clazz) {
JNIEnv *newEnv;
pojav_environ->dalvikJavaVMPtr->AttachCurrentThread(&newEnv, NULL);
pojav_environ->dalvikJavaVMPtr->AttachCurrentThread(&newEnv, nullptr);
}

extern "C"
Expand Down

0 comments on commit 6bd9f71

Please sign in to comment.