(iOS) Update shader settings

This commit is contained in:
meancoot 2013-04-07 19:07:43 -04:00
parent 035e9d2624
commit 9add01d0f1
2 changed files with 7 additions and 3 deletions

View File

@ -205,7 +205,7 @@ static void event_reload_config(void* userdata)
{
// Need to clear these otherwise stale versions may be used!
memset(g_settings.input.overlay, 0, sizeof(g_settings.input.overlay));
memset(g_settings.video.xml_shader_path, 0, sizeof(g_settings.video.xml_shader_path));
memset(g_settings.video.shader_path, 0, sizeof(g_settings.video.shader_path));
uninit_drivers();
g_extern.block_config_read = false;
@ -353,7 +353,7 @@ static void event_reload_config(void* userdata)
{
// Need to clear these otherwise stale versions may be used!
memset(g_settings.input.overlay, 0, sizeof(g_settings.input.overlay));
memset(g_settings.video.xml_shader_path, 0, sizeof(g_settings.video.xml_shader_path));
memset(g_settings.video.shader_path, 0, sizeof(g_settings.video.shader_path));
}
}

View File

@ -157,7 +157,11 @@ static RASettingData* custom_action(NSString* action)
boolean_setting(config, @"video_crop_overscan", @"Crop Overscan", @"true"),
boolean_setting(config, @"video_scale_integer", @"Integer Scaling", @"false"),
aspect_setting(config, @"Aspect Ratio"),
subpath_setting(config, @"video_xml_shader", @"Shader", @"", shader_path, @"shader"),
nil],
[NSArray arrayWithObjects:@"GPU Shader",
boolean_setting(config, @"video_shader_enable", @"Enable Shader", @"false"),
subpath_setting(config, @"video_shader", @"Shader", @"", shader_path, @"shader"),
nil],
[NSArray arrayWithObjects:@"Audio",