(Android Phoenix) Add TV mode - boot straight into RGUI

This commit is contained in:
twinaphex 2013-08-14 04:17:30 +02:00
parent 0dde2ce7c4
commit 6fd04e1e0e
4 changed files with 36 additions and 4 deletions

View File

@ -32,6 +32,7 @@
<activity android:name=".browser.FileWrapper"></activity>
<activity android:name=".browser.DirectoryActivity"></activity>
<activity android:name=".browser.ROMActivity"></activity>
<activity android:name=".browser.RetroTVMode"></activity>
<activity android:name=".browser.ShaderActivity"></activity>
<activity android:name=".browser.OverlayActivity"></activity>

View File

@ -2,7 +2,12 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="RetroArch 0.9.9.5 - Main Menu" >
<PreferenceScreen android:title="Select Game">
<PreferenceScreen android:title="TV Mode">
<intent
android:targetClass="org.retroarch.browser.RetroTVMode"
android:targetPackage="org.retroarch" />
</PreferenceScreen>
<PreferenceScreen android:title="Load Game">
<intent
android:targetClass="org.retroarch.browser.CoreSelection"
android:targetPackage="org.retroarch" />

View File

@ -0,0 +1,19 @@
package org.retroarch.browser;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.provider.Settings;
public class RetroTVMode extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent myIntent = new Intent(this, RetroActivity.class);
startActivity(myIntent);
finish();
}
}

View File

@ -153,9 +153,16 @@ static bool android_app_start_main(struct android_app *android_app)
config_load();
menu_init();
ret = load_menu_game();
if (ret)
g_extern.lifecycle_mode_state |= (1ULL << MODE_GAME);
if *(g_extern.fullpath)
{
ret = load_menu_game();
if (ret)
g_extern.lifecycle_mode_state |= (1ULL << MODE_GAME);
}
else
g_extern.lifecycle_mode_state |= (1ULL << MODE_MENU);
return ret;
}