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",