Permalink
Browse files

front: Expose all GLideN64 config settings via emulation profiles.

For now, all non-boolean prefs are simply specified as text.  This UI
will be cleaned up and refined (e.g. using list dropdowns and sliders)
once we decide exactly which prefs to expose to Android users.
  • Loading branch information...
littleguy77 committed May 21, 2015
1 parent bc0eb94 commit 141bda08e7198cd570e5b494d83f8518ea904125
Showing with 207 additions and 36 deletions.
  1. +165 −0 res/xml/profile_emulation.xml
  2. +42 −36 src/paulscode/android/mupen64plusae/jni/NativeConfigFiles.java
@@ -134,5 +134,170 @@
android:summary="@string/selectedValue"
android:title="@string/glide64Frameskip_title" />
</PreferenceCategory>
+ <PreferenceCategory
+ android:key="categoryGliden64"
+ android:title="@string/categoryGliden64_title" >
+ <!-- This is just a temporary implementation for GLideN64. -->
+ <!-- This list will be pruned and remaining preferences will be switched to more appropriate types (e.g. list preference rather than text) -->
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="3"
+ android:key="configVersion"
+ android:summary="@string/selectedValue"
+ android:title="configVersion" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="0"
+ android:key="MultiSampling"
+ android:summary="@string/selectedValue"
+ android:title="MultiSampling" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="1"
+ android:key="AspectRatio"
+ android:summary="@string/selectedValue"
+ android:title="AspectRatio" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="true"
+ android:key="bilinearMode"
+ android:title="bilinearMode" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="MaxAnisotropy"
+ android:title="MaxAnisotropy" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="500"
+ android:key="CacheSize"
+ android:summary="@string/selectedValue"
+ android:title="CacheSize" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="true"
+ android:key="EnableFog"
+ android:title="EnableFog" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="true"
+ android:key="EnableNoise"
+ android:title="EnableNoise" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="true"
+ android:key="EnableLOD"
+ android:title="EnableLOD" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="EnableHWLighting"
+ android:title="EnableHWLighting" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="true"
+ android:key="EnableFBEmulation"
+ android:title="EnableFBEmulation" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="EnableCopyColorToRDRAM"
+ android:title="EnableCopyColorToRDRAM" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="EnableCopyDepthToRDRAM"
+ android:title="EnableCopyDepthToRDRAM" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="EnableCopyColorFromRDRAM"
+ android:title="EnableCopyColorFromRDRAM" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="EnableDetectCFB"
+ android:title="EnableDetectCFB" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="EnableN64DepthCompare"
+ android:title="EnableN64DepthCompare" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="ValidityCheckMethod"
+ android:title="ValidityCheckMethod" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="0"
+ android:key="txFilterMode"
+ android:summary="@string/selectedValue"
+ android:title="txFilterMode" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="0"
+ android:key="txEnhancementMode"
+ android:summary="@string/selectedValue"
+ android:title="txEnhancementMode" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="txFilterIgnoreBG"
+ android:title="txFilterIgnoreBG" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="100"
+ android:key="txCacheSize"
+ android:summary="@string/selectedValue"
+ android:title="txCacheSize" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="txHiresEnable"
+ android:title="txHiresEnable" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="txHiresFullAlphaChannel"
+ android:title="txHiresFullAlphaChannel" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="txHresAltCRC"
+ android:title="txHresAltCRC" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="txDump"
+ android:title="txDump" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="true"
+ android:key="txCacheCompression"
+ android:title="txCacheCompression" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
+ android:key="txForce16bpp"
+ android:title="txForce16bpp" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="true"
+ android:key="txSaveCache"
+ android:title="txSaveCache" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="FreeSans.ttf"
+ android:key="fontName"
+ android:summary="@string/selectedValue"
+ android:title="fontName" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="18"
+ android:key="fontSize"
+ android:summary="@string/selectedValue"
+ android:title="fontSize" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="B5E61D"
+ android:key="fontColor"
+ android:summary="@string/selectedValue"
+ android:title="fontColor" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="0"
+ android:key="EnableBloom"
+ android:summary="@string/selectedValue"
+ android:title="EnableBloom" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="4"
+ android:key="bloomThresholdLevel"
+ android:summary="@string/selectedValue"
+ android:title="bloomThresholdLevel" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="0"
+ android:key="bloomBlendMode"
+ android:summary="@string/selectedValue"
+ android:title="bloomBlendMode" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="10"
+ android:key="blurAmount"
+ android:summary="@string/selectedValue"
+ android:title="blurAmount" />
+ <paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
+ android:defaultValue="20"
+ android:key="blurStrength"
+ android:summary="@string/selectedValue"
+ android:title="blurStrength" />
+ </PreferenceCategory>
</PreferenceScreen>
Oops, something went wrong.

0 comments on commit 141bda0

Please sign in to comment.