Permalink
Browse files

front: Hide GLideN64 category in emulation profile editor, as needed.

  • Loading branch information...
littleguy77 committed May 8, 2015
1 parent da8d7c7 commit fb55678d67cbff87b2a8422781022004ac5274cf
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/paulscode/android/mupen64plusae/profile/EmulationProfileActivity.java
@@ -44,11 +44,13 @@
private static final String CATEGORY_RICE = "categoryRice";
private static final String CATEGORY_GLN64 = "categoryGln64";
private static final String CATEGORY_GLIDE64 = "categoryGlide64";
+ private static final String CATEGORY_GLIDEN64 = "categoryGliden64";
private static final String VIDEO_PLUGIN = "videoPlugin";
private static final String PATH_HI_RES_TEXTURES = "pathHiResTextures";
// These constants must match the entry-values found in arrays.xml
private static final String LIBGLIDE64_SO = "libmupen64plus-video-glide64mk2.so";
+ private static final String LIBGLIDEN64_SO = "libmupen64plus-video-gliden64.so";
private static final String LIBRICE_SO = "libmupen64plus-video-rice.so";
private static final String LIBGLN64_SO = "libmupen64plus-video-gln64.so";
@@ -57,6 +59,7 @@
private Preference mCategoryN64 = null;
private Preference mCategoryRice = null;
private Preference mCategoryGlide64 = null;
+ private Preference mCategoryGliden64 = null;
@Override
protected int getPrefsResId()
@@ -86,6 +89,7 @@ protected void onCreate( Bundle savedInstanceState )
mCategoryN64 = findPreference( CATEGORY_GLN64 );
mCategoryRice = findPreference( CATEGORY_RICE );
mCategoryGlide64 = findPreference( CATEGORY_GLIDE64 );
+ mCategoryGliden64 = findPreference( CATEGORY_GLIDEN64 );
}
@Override
@@ -120,6 +124,11 @@ protected void refreshViews()
mScreenRoot.addPreference( mCategoryGlide64 );
else
mScreenRoot.removePreference( mCategoryGlide64 );
+
+ if( LIBGLIDEN64_SO.equals( videoPlugin ) )
+ mScreenRoot.addPreference( mCategoryGliden64 );
+ else
+ mScreenRoot.removePreference( mCategoryGliden64 );
}
private void processTexturePak( final String filename )

0 comments on commit fb55678

Please sign in to comment.