Permalink
Browse files

Front: Added GlideN64 force gamma correction option to emulation profile

  • Loading branch information...
Gillou68310 committed Oct 30, 2015
1 parent 3020a04 commit 08e463871d2c600ffcec5809a115a203ac8c35fd
@@ -183,6 +183,15 @@
android:defaultValue="true"
android:key="EnableShaderStorage"
android:title="EnableShaderStorage" />
<paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
android:defaultValue="false"
android:key="ForceGammaCorrection"
android:title="ForceGammaCorrection" />
<paulscode.android.mupen64plusae.preference.CompatibleEditTextPreference
android:defaultValue="2.0"
android:key="GammaCorrectionLevel"
android:summary="@string/selectedValue"
android:title="GammaCorrectionLevel" />
<paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
android:defaultValue="true"
android:key="EnableFBEmulation"
@@ -142,6 +142,8 @@ public static void syncConfigFiles( GamePrefs game, GlobalPrefs global, AppData
putGliden64( mupen64plus_cfg, game, "EnableLOD", "True" ); // Enable LOD emulation.
putGliden64( mupen64plus_cfg, game, "EnableHWLighting", "False" ); // Enable hardware per-pixel lighting.
putGliden64( mupen64plus_cfg, game, "EnableShaderStorage", "True" ); // Use persistent storage for compiled shaders.
putGliden64( mupen64plus_cfg, game, "ForceGammaCorrection", "False" ); // Force gamma correction.
putGliden64( mupen64plus_cfg, game, "GammaCorrectionLevel", "1.0" ); // Gamma correction value.
putGliden64( mupen64plus_cfg, game, "EnableFBEmulation", "True" ); // Enable frame and|or depth buffer emulation.
putGliden64( mupen64plus_cfg, game, "EnableCopyColorToRDRAM", "2" ); // Enable color buffer copy to RDRAM (0=do not copy, 1=copy in sync mode, 2=copy in async mode)
putGliden64( mupen64plus_cfg, game, "EnableCopyDepthToRDRAM", "False" ); // Enable depth buffer copy to RDRAM.
@@ -56,6 +56,8 @@
private static final String GLIDEN64_ENABLE_N64_DEPTH_COMPARE = "EnableN64DepthCompare";
private static final String GLIDEN64_ENABLE_FB_EMULATION = "EnableFBEmulation";
private static final String GLIDEN64_WIDESCREEN_HACK = "WidescreenHack";
private static final String GLIDEN64_FORCE_GAMMA_CORRECTION = "ForceGammaCorrection";
private static final String GLIDEN64_GAMMA_CORRECTION_LEVEL = "GammaCorrectionLevel";
// These constants must match the entry-values found in arrays.xml
private static final String LIBGLIDE64_SO = "libmupen64plus-video-glide64mk2.so";
@@ -154,6 +156,9 @@ protected void refreshViews()
String enableFBEmulation = mPrefs.getString( GLIDEN64_ENABLE_FB_EMULATION, null );
findPreference( GLIDEN64_WIDESCREEN_HACK ).setEnabled( enableFBEmulation.equals("True") );
String forceGammaCorrection = mPrefs.getString( GLIDEN64_FORCE_GAMMA_CORRECTION, null );
findPreference( GLIDEN64_GAMMA_CORRECTION_LEVEL ).setEnabled( forceGammaCorrection.equals("True") );
}
else
mScreenRoot.removePreference( mCategoryGliden64 );

0 comments on commit 08e4638

Please sign in to comment.