mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
(Android) Seems to run frames now - now to get video/sound
This commit is contained in:
parent
936daba8de
commit
2c1980b7b0
@ -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);
|
||||
}
|
||||
|
||||
|
@ -84,6 +84,7 @@ public class main extends Activity
|
||||
+ R.raw.retroarch);
|
||||
|
||||
rruntime.startup(video.toString());
|
||||
while(rruntime.run_frame());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user