mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
- both MainMenuActivity and RetroActivity are single instances now - AKEYCODE_BACK gets eaten and onBackPressed in Java is triggered - onBackPressed right now calls an instance of MainMenuActivity (reuses the existing activity on the stack) - User can switch back and forth between RetroActivity and MainMenuActivity with AKEYCODE_BACK / Back button - When a subsequent intent is launched after RetroActivity has already been started up once, the pending intent gets passed to the existing RetroActivity throug onNewIntent - in C land it will look every frame if an intent is pending - if it is, it will look up certain variables through JNI to launch a new game - or whatever it is that the intent wants to do - With this we can now switch seamlessly between Android UI and RetroArch itself.
71 lines
2.6 KiB
XML
71 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:title="@string/mainmenu_title" >
|
|
|
|
<!-- TV Mode -->
|
|
<Preference
|
|
android:key="retroTVMode"
|
|
android:title="@string/tv_mode"/>
|
|
|
|
<!-- Load Core -->
|
|
<Preference
|
|
android:key="loadCorePref"
|
|
android:title="@string/load_core"/>
|
|
|
|
<!-- Load Game -->
|
|
<Preference
|
|
android:key="loadRomPref"
|
|
android:title="@string/load_game"/>
|
|
|
|
<!-- Load Game (History) -->
|
|
<Preference
|
|
android:key="loadRomHistoryPref"
|
|
android:title="@string/load_game_history"/>
|
|
|
|
<!-- Settings -->
|
|
<Preference android:title="@string/settings">
|
|
<intent
|
|
android:targetClass="com.retroarch.browser.preferences.PreferenceActivity"
|
|
android:targetPackage="com.retroarch" />
|
|
</Preference>
|
|
|
|
<!-- About -->
|
|
<PreferenceScreen android:title="@string/about">
|
|
<PreferenceCategory android:title="@string/websites">
|
|
<Preference android:title="@string/retro_website"
|
|
android:summary="@string/retro_website_desc">
|
|
<intent
|
|
android:action="android.intent.action.VIEW"
|
|
android:data="http://www.libretro.com" />
|
|
</Preference>
|
|
</PreferenceCategory>
|
|
<PreferenceCategory android:title="@string/manuals">
|
|
<Preference android:title="@string/retroarch_guide"
|
|
android:summary="@string/retroarch_guide_desc">
|
|
<intent
|
|
android:action="android.intent.action.VIEW"
|
|
android:data="http://www.libretro.com/documents/retroarch-manual.pdf" />
|
|
</Preference>
|
|
<Preference android:title="@string/cores_guide"
|
|
android:summary="@string/cores_guide_desc">
|
|
<intent
|
|
android:action="android.intent.action.VIEW"
|
|
android:data="http://www.libretro.com/documents/retroarch-cores-manual.pdf" />
|
|
</Preference>
|
|
</PreferenceCategory>
|
|
<PreferenceCategory android:title="@string/development">
|
|
<Preference android:title="@string/overlay_guide"
|
|
android:summary="@string/overlay_guide_desc">
|
|
<intent
|
|
android:action="android.intent.action.VIEW"
|
|
android:data="http://www.libretro.com/documents/overlay.pdf" />
|
|
</Preference>
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|
|
|
|
<!-- Quit RetroArch -->
|
|
<Preference
|
|
android:key="quitRetroArch"
|
|
android:title="@string/quit"/>
|
|
</PreferenceScreen>
|