mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 13:20:43 +00:00
Avoid needless branch.
This commit is contained in:
parent
f8ac159fc2
commit
926707ae44
@ -1414,11 +1414,8 @@ static void shader_manager_init(rgui_handle_t *rgui)
|
|||||||
const char *shader_dir = *g_settings.video.shader_dir ?
|
const char *shader_dir = *g_settings.video.shader_dir ?
|
||||||
g_settings.video.shader_dir : g_settings.system_directory;
|
g_settings.video.shader_dir : g_settings.system_directory;
|
||||||
|
|
||||||
if (!conf)
|
fill_pathname_join(cgp_path, shader_dir, "rgui.glslp", sizeof(cgp_path));
|
||||||
{
|
conf = config_file_new(cgp_path);
|
||||||
fill_pathname_join(cgp_path, shader_dir, "rgui.glslp", sizeof(cgp_path));
|
|
||||||
conf = config_file_new(cgp_path);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!conf)
|
if (!conf)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user