mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(menu_shader.c) Start using configuration_set_bool
This commit is contained in:
parent
59faeb510b
commit
268a173f44
@ -259,7 +259,7 @@ void menu_shader_manager_set_preset(void *data,
|
|||||||
|
|
||||||
if (!video_driver_set_shader((enum rarch_shader_type)type, preset_path))
|
if (!video_driver_set_shader((enum rarch_shader_type)type, preset_path))
|
||||||
{
|
{
|
||||||
settings->video.shader_enable = false;
|
configuration_set_bool(settings, settings->video.shader_enable, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,7 +268,7 @@ void menu_shader_manager_set_preset(void *data,
|
|||||||
strlcpy(settings->path.shader,
|
strlcpy(settings->path.shader,
|
||||||
preset_path ? preset_path : "",
|
preset_path ? preset_path : "",
|
||||||
sizeof(settings->path.shader));
|
sizeof(settings->path.shader));
|
||||||
settings->video.shader_enable = true;
|
configuration_set_bool(settings, settings->video.shader_enable, true);
|
||||||
|
|
||||||
if (!preset_path || !shader)
|
if (!preset_path || !shader)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user