From b560e58fb0ea6c575b07939b1cc9bc44be0690b8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Feb 2013 01:14:56 +0100 Subject: [PATCH] (Android) Add help system in Java frontend --- android/phoenix/AndroidManifest.xml | 1 + .../faq_games_are_slow_with_rewind_why.xml | 13 +++ .../layout/faq_how_do_i_run_cave_story.xml | 13 +++ .../res/layout/faq_how_do_i_run_prboom.xml | 13 +++ .../layout/faq_neo_geo_game_doesnt_work.xml | 13 +++ .../layout/faq_pce_cd_game_doesnt_work.xml | 13 +++ ...q_ps1_core_looks_bad_on_my_tegra_2_why.xml | 14 ++++ .../res/layout/faq_ps1_game_doesnt_work.xml | 13 +++ .../layout/faq_sega_cd_game_doesnt_work.xml | 13 +++ .../phoenix/res/layout/faq_sound_choppy.xml | 13 +++ .../res/layout/faq_system_requirements.xml | 28 +++++++ .../layout/faq_what_is_a_libretro_core.xml | 13 +++ android/phoenix/res/layout/faq_whats_new.xml | 79 +++++++++++++++++++ .../res/layout/faq_where_are_the_games.xml | 13 +++ .../faq_why_are_the_shaders_so_slow.xml | 13 +++ .../faq_why_does_prboom_have_no_music.xml | 57 +++++++++++++ ...aq_why_doesnt_it_autodetect_my_gamepad.xml | 21 +++++ ...oesnt_the_ps1_core_show_up_in_the_list.xml | 14 ++++ .../res/layout/faq_why_is_gba_so_slow.xml | 13 +++ android/phoenix/res/menu/context_menu.xml | 1 + android/phoenix/res/values/strings.xml | 3 +- android/phoenix/res/xml/help.xml | 72 +++++++++++++++++ .../org/retroarch/browser/HelpActivity.java | 17 ++++ .../src/org/retroarch/browser/RetroArch.java | 4 + 24 files changed, 466 insertions(+), 1 deletion(-) create mode 100644 android/phoenix/res/layout/faq_games_are_slow_with_rewind_why.xml create mode 100644 android/phoenix/res/layout/faq_how_do_i_run_cave_story.xml create mode 100644 android/phoenix/res/layout/faq_how_do_i_run_prboom.xml create mode 100644 android/phoenix/res/layout/faq_neo_geo_game_doesnt_work.xml create mode 100644 android/phoenix/res/layout/faq_pce_cd_game_doesnt_work.xml create mode 100644 android/phoenix/res/layout/faq_ps1_core_looks_bad_on_my_tegra_2_why.xml create mode 100644 android/phoenix/res/layout/faq_ps1_game_doesnt_work.xml create mode 100644 android/phoenix/res/layout/faq_sega_cd_game_doesnt_work.xml create mode 100644 android/phoenix/res/layout/faq_sound_choppy.xml create mode 100644 android/phoenix/res/layout/faq_system_requirements.xml create mode 100644 android/phoenix/res/layout/faq_what_is_a_libretro_core.xml create mode 100644 android/phoenix/res/layout/faq_whats_new.xml create mode 100644 android/phoenix/res/layout/faq_where_are_the_games.xml create mode 100644 android/phoenix/res/layout/faq_why_are_the_shaders_so_slow.xml create mode 100644 android/phoenix/res/layout/faq_why_does_prboom_have_no_music.xml create mode 100644 android/phoenix/res/layout/faq_why_doesnt_it_autodetect_my_gamepad.xml create mode 100644 android/phoenix/res/layout/faq_why_doesnt_the_ps1_core_show_up_in_the_list.xml create mode 100644 android/phoenix/res/layout/faq_why_is_gba_so_slow.xml create mode 100644 android/phoenix/res/xml/help.xml create mode 100644 android/phoenix/src/org/retroarch/browser/HelpActivity.java diff --git a/android/phoenix/AndroidManifest.xml b/android/phoenix/AndroidManifest.xml index e37366c38a..5ca784799d 100644 --- a/android/phoenix/AndroidManifest.xml +++ b/android/phoenix/AndroidManifest.xml @@ -22,6 +22,7 @@ + diff --git a/android/phoenix/res/layout/faq_games_are_slow_with_rewind_why.xml b/android/phoenix/res/layout/faq_games_are_slow_with_rewind_why.xml new file mode 100644 index 0000000000..74ed7b330c --- /dev/null +++ b/android/phoenix/res/layout/faq_games_are_slow_with_rewind_why.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_how_do_i_run_cave_story.xml b/android/phoenix/res/layout/faq_how_do_i_run_cave_story.xml new file mode 100644 index 0000000000..3110a12846 --- /dev/null +++ b/android/phoenix/res/layout/faq_how_do_i_run_cave_story.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_how_do_i_run_prboom.xml b/android/phoenix/res/layout/faq_how_do_i_run_prboom.xml new file mode 100644 index 0000000000..a6d08b9efa --- /dev/null +++ b/android/phoenix/res/layout/faq_how_do_i_run_prboom.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_neo_geo_game_doesnt_work.xml b/android/phoenix/res/layout/faq_neo_geo_game_doesnt_work.xml new file mode 100644 index 0000000000..b94cc64df1 --- /dev/null +++ b/android/phoenix/res/layout/faq_neo_geo_game_doesnt_work.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_pce_cd_game_doesnt_work.xml b/android/phoenix/res/layout/faq_pce_cd_game_doesnt_work.xml new file mode 100644 index 0000000000..2e8a11ae93 --- /dev/null +++ b/android/phoenix/res/layout/faq_pce_cd_game_doesnt_work.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_ps1_core_looks_bad_on_my_tegra_2_why.xml b/android/phoenix/res/layout/faq_ps1_core_looks_bad_on_my_tegra_2_why.xml new file mode 100644 index 0000000000..1286c4f0eb --- /dev/null +++ b/android/phoenix/res/layout/faq_ps1_core_looks_bad_on_my_tegra_2_why.xml @@ -0,0 +1,14 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_ps1_game_doesnt_work.xml b/android/phoenix/res/layout/faq_ps1_game_doesnt_work.xml new file mode 100644 index 0000000000..510dfcc0bf --- /dev/null +++ b/android/phoenix/res/layout/faq_ps1_game_doesnt_work.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_sega_cd_game_doesnt_work.xml b/android/phoenix/res/layout/faq_sega_cd_game_doesnt_work.xml new file mode 100644 index 0000000000..2eea4ee4a6 --- /dev/null +++ b/android/phoenix/res/layout/faq_sega_cd_game_doesnt_work.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_sound_choppy.xml b/android/phoenix/res/layout/faq_sound_choppy.xml new file mode 100644 index 0000000000..6172646d03 --- /dev/null +++ b/android/phoenix/res/layout/faq_sound_choppy.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_system_requirements.xml b/android/phoenix/res/layout/faq_system_requirements.xml new file mode 100644 index 0000000000..f393bc6d84 --- /dev/null +++ b/android/phoenix/res/layout/faq_system_requirements.xml @@ -0,0 +1,28 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_what_is_a_libretro_core.xml b/android/phoenix/res/layout/faq_what_is_a_libretro_core.xml new file mode 100644 index 0000000000..07a218e6b7 --- /dev/null +++ b/android/phoenix/res/layout/faq_what_is_a_libretro_core.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_whats_new.xml b/android/phoenix/res/layout/faq_whats_new.xml new file mode 100644 index 0000000000..18181410a9 --- /dev/null +++ b/android/phoenix/res/layout/faq_whats_new.xml @@ -0,0 +1,79 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_where_are_the_games.xml b/android/phoenix/res/layout/faq_where_are_the_games.xml new file mode 100644 index 0000000000..f888e8146d --- /dev/null +++ b/android/phoenix/res/layout/faq_where_are_the_games.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_why_are_the_shaders_so_slow.xml b/android/phoenix/res/layout/faq_why_are_the_shaders_so_slow.xml new file mode 100644 index 0000000000..5107968b8a --- /dev/null +++ b/android/phoenix/res/layout/faq_why_are_the_shaders_so_slow.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_why_does_prboom_have_no_music.xml b/android/phoenix/res/layout/faq_why_does_prboom_have_no_music.xml new file mode 100644 index 0000000000..cf831eca72 --- /dev/null +++ b/android/phoenix/res/layout/faq_why_does_prboom_have_no_music.xml @@ -0,0 +1,57 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_why_doesnt_it_autodetect_my_gamepad.xml b/android/phoenix/res/layout/faq_why_doesnt_it_autodetect_my_gamepad.xml new file mode 100644 index 0000000000..e107766193 --- /dev/null +++ b/android/phoenix/res/layout/faq_why_doesnt_it_autodetect_my_gamepad.xml @@ -0,0 +1,21 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_why_doesnt_the_ps1_core_show_up_in_the_list.xml b/android/phoenix/res/layout/faq_why_doesnt_the_ps1_core_show_up_in_the_list.xml new file mode 100644 index 0000000000..e24ef2f961 --- /dev/null +++ b/android/phoenix/res/layout/faq_why_doesnt_the_ps1_core_show_up_in_the_list.xml @@ -0,0 +1,14 @@ + + + + + diff --git a/android/phoenix/res/layout/faq_why_is_gba_so_slow.xml b/android/phoenix/res/layout/faq_why_is_gba_so_slow.xml new file mode 100644 index 0000000000..c391668690 --- /dev/null +++ b/android/phoenix/res/layout/faq_why_is_gba_so_slow.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/phoenix/res/menu/context_menu.xml b/android/phoenix/res/menu/context_menu.xml index f4add82b67..8a0a6a6176 100644 --- a/android/phoenix/res/menu/context_menu.xml +++ b/android/phoenix/res/menu/context_menu.xml @@ -1,6 +1,7 @@ + diff --git a/android/phoenix/res/values/strings.xml b/android/phoenix/res/values/strings.xml index 7e2dbf1846..bb44ca812e 100644 --- a/android/phoenix/res/values/strings.xml +++ b/android/phoenix/res/values/strings.xml @@ -4,7 +4,7 @@ Input Method File type icon Video Settings - RetroArch Settings + Settings Audio Settings Input Settings General Settings @@ -14,6 +14,7 @@ Overlay How-to Guide Select the button to use Unbind + Help Report IME Report Refresh Rate Detect diff --git a/android/phoenix/res/xml/help.xml b/android/phoenix/res/xml/help.xml new file mode 100644 index 0000000000..f7638e5652 --- /dev/null +++ b/android/phoenix/res/xml/help.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/phoenix/src/org/retroarch/browser/HelpActivity.java b/android/phoenix/src/org/retroarch/browser/HelpActivity.java new file mode 100644 index 0000000000..ea1e113b79 --- /dev/null +++ b/android/phoenix/src/org/retroarch/browser/HelpActivity.java @@ -0,0 +1,17 @@ +package org.retroarch.browser; + +import org.retroarch.R; + +import android.os.Bundle; +import android.preference.PreferenceActivity; +import android.preference.PreferenceManager; + +public class HelpActivity extends PreferenceActivity { + @SuppressWarnings("deprecation") + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + addPreferencesFromResource(R.xml.help); + PreferenceManager.setDefaultValues(this, R.xml.help, false); + } +} \ No newline at end of file diff --git a/android/phoenix/src/org/retroarch/browser/RetroArch.java b/android/phoenix/src/org/retroarch/browser/RetroArch.java index 5ec6e2f490..2587ad2171 100644 --- a/android/phoenix/src/org/retroarch/browser/RetroArch.java +++ b/android/phoenix/src/org/retroarch/browser/RetroArch.java @@ -489,6 +489,10 @@ public class RetroArch extends Activity implements Intent rset = new Intent(this, SettingsActivity.class); startActivity(rset); return true; + case R.id.help: + Intent help = new Intent(this, HelpActivity.class); + startActivity(help); + return true; case R.id.report_ime: String current_ime = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);