From 9add01d0f1388d3fcf3496699b15514b31790a7e Mon Sep 17 00:00:00 2001 From: meancoot Date: Sun, 7 Apr 2013 19:07:43 -0400 Subject: [PATCH] (iOS) Update shader settings --- ios/RetroArch/main.m | 4 ++-- ios/RetroArch/settings/settings.m | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ios/RetroArch/main.m b/ios/RetroArch/main.m index 94a9cb50e2..3845e100e2 100644 --- a/ios/RetroArch/main.m +++ b/ios/RetroArch/main.m @@ -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)); } } diff --git a/ios/RetroArch/settings/settings.m b/ios/RetroArch/settings/settings.m index 85aed40cc8..eff0010d1e 100644 --- a/ios/RetroArch/settings/settings.m +++ b/ios/RetroArch/settings/settings.m @@ -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",