JNIEXPORT void JNICALL Java_com_reicast_emulator_JNIdc_run(JNIEnv *env,jobject obj,jobject trk) { install_prof_handler(0); jenv=env; track=trk; jsamples=env->NewShortArray(SAMPLE_COUNT*2); writemid=env->GetMethodID(env->GetObjectClass(track),"WriteBuffer","([SI)I"); dc_run(); }
JNIEXPORT void JNICALL Java_com_reicast_emulator_emu_JNIdc_rendinit(JNIEnv * env, jobject obj, jint w,jint h) { screen_width = w; screen_height = h; //gles_term(); egl_stealcntx(); if (!gles_init()) die("OPENGL FAILED"); install_prof_handler(1); }
JNIEXPORT void JNICALL Java_com_reicast_emulator_emu_JNIdc_run(JNIEnv *env,jobject obj,jobject emu_thread) { install_prof_handler(0); jenv=env; emu=emu_thread; jsamples=env->NewShortArray(SAMPLE_COUNT*2); writemid=env->GetMethodID(env->GetObjectClass(emu),"WriteBuffer","([SI)I"); coreMessageMid=env->GetMethodID(env->GetObjectClass(emu),"coreMessage","([B)V"); dieMid=env->GetMethodID(env->GetObjectClass(emu),"Die","()V"); // msgboxf("HELLO!", MBX_OK); dc_run(); }