mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
video_shader_write_referenced_preset - logic flaw -
loaded_shader_preset_path is a character array - conditional boolean check would always evaluate to true - check if string is empty instead
This commit is contained in:
parent
2aac83faf0
commit
f4a20870c7
@ -1016,7 +1016,7 @@ bool video_shader_write_referenced_preset(const char *path_to_save,
|
||||
fill_pathname_application_special(config_dir, PATH_MAX_LENGTH, APPLICATION_SPECIAL_DIRECTORY_CONFIG);
|
||||
|
||||
/* If there is no initial preset path loaded */
|
||||
if (!shader->loaded_preset_path)
|
||||
if (string_is_empty(shader->loaded_preset_path))
|
||||
{
|
||||
RARCH_WARN("[ Shaders ]: Saving Full Preset because the loaded Shader does not have "
|
||||
"a path to a previously loaded preset file on disk.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user