mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 02:38:11 +00:00
(Android Phoenix) Add TV mode - boot straight into RGUI
This commit is contained in:
parent
0dde2ce7c4
commit
6fd04e1e0e
@ -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>
|
||||
|
@ -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" />
|
||||
|
19
android/phoenix/src/org/retroarch/browser/RetroTVMode.java
Normal file
19
android/phoenix/src/org/retroarch/browser/RetroTVMode.java
Normal 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();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user