Update Android shader paths.

This commit is contained in:
Themaister 2013-04-07 13:19:43 +02:00
parent f3ca37cb2b
commit c9725afa5c
2 changed files with 7 additions and 10 deletions

View File

@ -391,15 +391,12 @@ public class RetroArch extends Activity implements
config.setBoolean("video_scale_integer", prefs.getBoolean("video_scale_integer", false));
String shaderPath = prefs.getString("video_bsnes_shader", "");
if (prefs.getBoolean("video_shader_enable", false) && new File(shaderPath).exists()) {
config.setString("video_shader_type", "bsnes");
config.setString("video_bsnes_shader", shaderPath);
} else {
config.setString("video_shader_type", "none");
config.setString("video_bsnes_shader", "");
}
String shaderPath = prefs.getString("video_shader", "");
config.setString("video_shader", shaderPath);
config.setBoolean("video_shader_enable",
prefs.getBoolean("video_shader_enable", false)
&& new File(shaderPath).exists());
boolean useOverlay = prefs.getBoolean("input_overlay_enable", true);
if (useOverlay) {
String overlayPath = prefs.getString("input_overlay", getCacheDir() + "/Overlays/snes-landscape.cfg");

View File

@ -12,7 +12,7 @@ public class ShaderActivity extends DirectoryActivity {
super.setStartDirectory(shaderDir.getAbsolutePath());
super.addAllowedExt(".shader");
super.setPathSettingKey("video_bsnes_shader");
super.setPathSettingKey("video_shader");
super.onCreate(savedInstanceState);
}
}