(Android) Seems to run frames now - now to get video/sound

This commit is contained in:
twinaphex 2012-10-05 19:02:32 +02:00
parent 936daba8de
commit 2c1980b7b0
2 changed files with 7 additions and 0 deletions

View File

@ -104,9 +104,13 @@ JNIEXPORT void JNICALL Java_com_retroarch_rruntime_load_1game
(*env)->ReleaseStringUTFChars(env, j_path, game_path);
}
static int counter = 0;
JNIEXPORT jboolean JNICALL Java_com_retroarch_rruntime_run_1frame
(JNIEnv *env, jclass class)
{
counter++;
RARCH_LOG("counter: %d.\n", counter);
return rarch_main_iterate();
}
@ -121,6 +125,8 @@ JNIEXPORT void JNICALL Java_com_retroarch_rruntime_startup
retval = rarch_startup(config_path);
rarch_init_msg_queue();
(*env)->ReleaseStringUTFChars(env, j_config_path, config_path);
}

View File

@ -84,6 +84,7 @@ public class main extends Activity
+ R.raw.retroarch);
rruntime.startup(video.toString());
while(rruntime.run_frame());
}
}