From a745557f207655c4a50369b7da2c681d17610067 Mon Sep 17 00:00:00 2001 From: ToadKing Date: Sun, 10 Feb 2013 13:56:58 -0500 Subject: [PATCH] (Android/Phoenix) disable settings based on dependencies --- android/phoenix/res/xml/prefs.xml | 35 +++++++++++++++++++------------ 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/android/phoenix/res/xml/prefs.xml b/android/phoenix/res/xml/prefs.xml index cb76cf6930..680bef7518 100644 --- a/android/phoenix/res/xml/prefs.xml +++ b/android/phoenix/res/xml/prefs.xml @@ -18,7 +18,8 @@ android:key="savefile_directory_enable" android:defaultValue="false"/> + android:summary="Sets directory where to save and load game save files." + android:dependency="savefile_directory_enable"> @@ -30,7 +31,8 @@ android:key="savestate_directory_enable" android:defaultValue="false"/> + android:summary="Sets directory where to save and load game save states." + android:dependency="savestate_directory_enable"> @@ -74,10 +76,12 @@ android:key="video_refresh_rate" android:summary="Force a specific refresh rate to be detected. Only use if auto-detection of refresh rate reports wrong refresh rate." android:title="Forced refresh rate (Hz)" - android:numeric="decimal" /> + android:numeric="decimal" + android:dependency="video_sync_refreshrate_to_screen" /> + android:summary="Attempts to find the true refresh rate of monitor. Updates value in 'Force refresh rate (Hz)' option. To help ensure accuracy, make sure no intense background services are running, and avoid triggering screensaver." + android:title="Calibrate refresh rate" + android:dependency="video_sync_refreshrate_to_screen" > @@ -102,14 +106,15 @@ android:summary="Applies Bilinear filtering, smooths out edges (settings still apply even if no shader is selected)." android:title="Bilinear filter" /> + android:summary="Sets GLES2 style XML shader." + android:title="XML shader" + android:dependency="video_shader_enable" > @@ -124,12 +129,13 @@ + android:title="XML shader (2nd pass)" + android:dependency="video_second_pass_shader_enable" > @@ -164,7 +170,8 @@ android:defaultValue="true" android:key="audio_rate_control" android:summary="Enable dynamic rate control (recommended)." - android:title="Dynamic Rate Control" /> + android:title="Dynamic Rate Control" + android:dependency="audio_enable" /> @@ -216,7 +223,8 @@ + android:title="Input overlay" + android:dependency="input_overlay_enable" > @@ -224,7 +232,8 @@ + android:key="input_overlay_opacity" + android:dependency="input_overlay_enable" />