mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
(Android) Now starts up the native activity correctly when a ROM has been
selected - arguments still need to be passed and right now it's just doing some glClears - however - POC more or less works - now to make it run Rarch
This commit is contained in:
parent
b89e0e90c9
commit
4f8a040411
@ -5,7 +5,7 @@ include $(CLEAR_VARS)
|
||||
|
||||
APP_OPTIM := debug
|
||||
|
||||
LOCAL_MODULE := retroarch
|
||||
LOCAL_MODULE := retroarch-activity
|
||||
|
||||
RARCH_PATH := ../../..
|
||||
LOCAL_SRC_FILES = $(RARCH_PATH)/retroarch.c \
|
||||
|
@ -9,9 +9,7 @@
|
||||
<application
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name">
|
||||
<activity
|
||||
android:name=".main"
|
||||
android:label="@string/app_name" >
|
||||
<activity android:name="phoenix" android:label="@string/app_name" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@ -20,10 +18,8 @@
|
||||
</activity>
|
||||
<activity android:label="@string/app_name" android:name="com.retroarch.fileio.FileChooser" />
|
||||
<activity android:label="@string/app_name" android:name="rombrowser" />
|
||||
<!--
|
||||
<activity android:name="android.app.NativeActivity" android:label="retroarch">
|
||||
<meta-data android:name="android.app.lib_name" android:value="retroarch" />
|
||||
<activity android:name="android.app.NativeActivity">
|
||||
<meta-data android:name="android.app.lib_name" android:value="retroarch-activity" />
|
||||
</activity>
|
||||
-->
|
||||
</application>
|
||||
</manifest>
|
||||
|
@ -20,6 +20,7 @@ import com.retroarch.R;
|
||||
import com.retroarch.fileio.FileChooser;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.NativeActivity;
|
||||
import android.content.Intent;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
@ -27,7 +28,7 @@ import android.view.MenuItem;
|
||||
import android.widget.Toast;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class main extends Activity
|
||||
public class phoenix extends Activity
|
||||
{
|
||||
static private final int ACTIVITY_LOAD_ROM = 0;
|
||||
|
||||
@ -55,7 +56,7 @@ public class main extends Activity
|
||||
break;
|
||||
case R.id.open:
|
||||
Toast.makeText(this, "Select a ROM image from the Filebrowser.", Toast.LENGTH_SHORT).show();
|
||||
Intent myIntent = new Intent(main.this, FileChooser.class);
|
||||
Intent myIntent = new Intent(this, FileChooser.class);
|
||||
startActivityForResult(myIntent, ACTIVITY_LOAD_ROM);
|
||||
break;
|
||||
default:
|
||||
@ -70,11 +71,9 @@ public class main extends Activity
|
||||
{
|
||||
if(requestCode == ACTIVITY_LOAD_ROM)
|
||||
{
|
||||
/*
|
||||
Intent myIntent = new Intent(this, NativeActivity.class);
|
||||
startActivity(myIntent);
|
||||
*/
|
||||
/*
|
||||
Intent myIntent = new Intent(this, NativeActivity.class);
|
||||
startActivity(myIntent);
|
||||
/*
|
||||
rruntime.settings_set_defaults();
|
||||
rruntime.load_game(data.getStringExtra("PATH"), 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user