mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 17:54:04 +00:00
(Android) use RARCH_LOG in bifrost.c
This commit is contained in:
parent
c49aa886a1
commit
0d0fd03e09
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="output" path="bin/classes"/>
|
||||
</classpath>
|
||||
|
@ -42,7 +42,6 @@
|
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.core.ccnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
|
@ -31,18 +31,19 @@
|
||||
|
||||
JNIEXPORT jint JNICALL JNI_OnLoad( JavaVM *vm, void *pvt)
|
||||
{
|
||||
fprintf(stdout, "* JNI_OnLoad called\n" );
|
||||
RARCH_LOG("* JNI_OnLoad.\n" );
|
||||
return JNI_VERSION_1_2;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL JNI_OnUnLoad( JavaVM *vm, void *pvt)
|
||||
{
|
||||
fprintf(stdout, "* JNI_OnUnLoad called\n" );
|
||||
RARCH_LOG("* JNI_OnUnLoad.\n" );
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_retroarch_rruntime_load_1game
|
||||
(JNIEnv *env, jclass class, jstring j_path, jint j_extract_zip_mode)
|
||||
{
|
||||
RARCH_LOG("* rruntime_load_game.\n" );
|
||||
jboolean is_copy = false;
|
||||
const char * game_path = (*env)->GetStringUTFChars(env, j_path, &is_copy);
|
||||
|
||||
@ -60,6 +61,7 @@ JNIEXPORT jboolean JNICALL Java_com_retroarch_rruntime_run_1frame
|
||||
JNIEXPORT void JNICALL Java_com_retroarch_rruntime_startup
|
||||
(JNIEnv *env, jclass class, jstring j_config_path)
|
||||
{
|
||||
RARCH_LOG("* rruntime_startup.\n" );
|
||||
bool retval = false;
|
||||
jboolean is_copy = false;
|
||||
const char * config_path = (*env)->GetStringUTFChars(env, j_config_path, &is_copy);
|
||||
@ -97,5 +99,6 @@ JNIEXPORT void JNICALL Java_com_retroarch_rruntime_settings_1change
|
||||
JNIEXPORT void JNICALL Java_com_retroarch_rruntime_settings_1set_1defaults
|
||||
(JNIEnv *env, jclass class)
|
||||
{
|
||||
RARCH_LOG("* rruntime_settings_set_defaults.\n" );
|
||||
rarch_settings_set_default();
|
||||
}
|
||||
|
@ -230,7 +230,9 @@ public class FileChooser extends Activity
|
||||
intent.putExtra(FileChooser.PAYLOAD_FILENAME, o.getPath());
|
||||
setResult(RESULT_OK, intent);
|
||||
|
||||
rruntime.settings_set_defaults();
|
||||
rruntime.load_game(o.getName(), 0);
|
||||
rruntime.startup(null);
|
||||
|
||||
finish();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user