#include #include #include #include #include #include extern "C" JNIEXPORT jstring JNICALL Java_gq_cyuubi_lightswitch_MainActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { core::cpu::Initialize(); core::loader::LoadNro("/sdcard/test.nro"); core::cpu::Run(BASE_ADDRESS); std::string finished = "finished!"; return env->NewStringUTF(finished.c_str()); }