Permalink
Browse files

front: changes to support latest GLideN64

  • Loading branch information...
1 parent 0224cdb commit f75de3631fea025b3a1280f6d62abb8cfb0ae1ce @fzurita fzurita committed Apr 15, 2016
@@ -398,6 +398,7 @@
<string name="gliden64_tx_enhancement_entry_4xBRZ">4xBRZ</string>
<string name="gliden64_tx_enhancement_entry_5xBRZ">5xBRZ</string>
<string name="gliden64_tx_enhancement_entry_6xBRZ">6xBRZ</string>
+ <string name="gliden64_tx_deposterize_title">Deposterize texture before enhancement</string>
<string name="gliden64_tx_filter_ignore_BG_title">Don\'t filter background textures</string>
<string name="gliden64_tx_cache_size_title">Size of filtered textures cache in megabytes</string>
<string name="gliden64_tx_hi_res_enable_title">Use high-resolution texture packs if available</string>
@@ -267,6 +267,10 @@
android:title="@string/gliden64_tx_enhancement_title" />
<paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
android:defaultValue="false"
+ android:key="txDeposterize"
+ android:title="@string/gliden64_tx_deposterize_title" />
+ <paulscode.android.mupen64plusae.preference.StringCheckBoxPreference
+ android:defaultValue="false"
android:key="txFilterIgnoreBG"
android:title="@string/gliden64_tx_filter_ignore_BG_title" />
<paulscode.android.mupen64plusae.preference.SeekBarPreference
@@ -167,7 +167,7 @@ public static void syncConfigFiles( GamePrefs game, GlobalPrefs global, AppData
readHiResSettings(game, global, appData);
- mupen64plus_cfg.put( "Video-GLideN64", "configVersion", "7" );
+ mupen64plus_cfg.put( "Video-GLideN64", "configVersion", "8" );
mupen64plus_cfg.put( "Video-GLideN64", "AspectRatio", aspectRatio);
mupen64plus_cfg.put( "Video-GLideN64", "ForcePolygonOffset", boolToTF( global.isPolygonOffsetHackEnabled ) );
mupen64plus_cfg.put( "Video-GLideN64", "PolygonOffsetFactor", String.valueOf( global.videoPolygonOffset ) );
@@ -194,6 +194,7 @@ public static void syncConfigFiles( GamePrefs game, GlobalPrefs global, AppData
mupen64plus_cfg.put( "Video-GLideN64", "FBInfoReadDepthChunk", boolToNum( game.gliden64FBInfoReadDepthChunk ) );
mupen64plus_cfg.put( "Video-GLideN64", "txFilterMode", String.valueOf( game.gliden64TxFilterMode ) );
mupen64plus_cfg.put( "Video-GLideN64", "txEnhancementMode", String.valueOf( game.gliden64TxEnhancementMode ) );
+ mupen64plus_cfg.put( "Video-GLideN64", "txDeposterize", boolToNum( game.gliden64TxDeposterize ) );
mupen64plus_cfg.put( "Video-GLideN64", "txFilterIgnoreBG", boolToNum( game.gliden64TxFilterIgnoreBG ) );
mupen64plus_cfg.put( "Video-GLideN64", "txCacheSize", String.valueOf( game.gliden64TxCacheSize ) );
mupen64plus_cfg.put( "Video-GLideN64", "txHiresEnable", boolToNum( game.gliden64TxHiresEnable ) );
@@ -244,6 +244,9 @@
* 13=6xBRZ) */
public final int gliden64TxEnhancementMode;
+ /** Deposterize texture before enhancement.. */
+ public final boolean gliden64TxDeposterize;
+
/** Don't filter background textures. */
public final boolean gliden64TxFilterIgnoreBG;
@@ -533,6 +536,7 @@ public GamePrefs( Context context, String romMd5, String crc, String headerName,
gliden64FBInfoReadDepthChunk = emulationProfile.get( "FBInfoReadDepthChunk", "True" ).equals( "True" );
gliden64TxFilterMode = getSafeInt( emulationProfile, "txFilterMode}]", 0);
gliden64TxEnhancementMode = getSafeInt( emulationProfile, "txEnhancementMode", 0);
+ gliden64TxDeposterize = emulationProfile.get( "txDeposterize", "False" ).equals( "True" );
gliden64TxFilterIgnoreBG = emulationProfile.get( "txFilterIgnoreBG", "False" ).equals( "True" );
gliden64TxCacheSize = getSafeInt( emulationProfile, "txCacheSize", 256);
gliden64TxHiresEnable = emulationProfile.get( "txHiresEnable", "False" ).equals( "True" );

0 comments on commit f75de36

Please sign in to comment.