Fix more C89_BUILD issues

This commit is contained in:
libretroadmin 2022-12-22 23:10:15 +01:00
parent 7eedfc8673
commit e82b75c769
3 changed files with 1 additions and 12 deletions

View File

@ -336,7 +336,7 @@ static bool add_active_buffer_ranges(
} }
else else
{ {
// TODO - Try to print name /* TODO - Try to print name */
RARCH_ERR("[slang]: Unknown semantic found.\n"); RARCH_ERR("[slang]: Unknown semantic found.\n");
return false; return false;
} }

View File

@ -1903,16 +1903,9 @@ bool video_shader_write_preset(const char *path,
const struct video_shader *shader, const struct video_shader *shader,
bool reference) bool reference)
{ {
/* We need to clean up paths to be able to properly process them
* path and shader->loaded_preset_path can use '/' on
* Windows due to Qt being Qt */
// char preset_dir[PATH_MAX_LENGTH];
if (!shader || string_is_empty(path)) if (!shader || string_is_empty(path))
return false; return false;
// fill_pathname_join(preset_dir, shader_dir, "presets", sizeof(preset_dir));
/* If we should still save a referenced preset do it now */ /* If we should still save a referenced preset do it now */
if (reference) if (reference)
{ {

View File

@ -7406,12 +7406,8 @@ bool menu_shader_manager_append_preset(struct video_shader *shader,
bool ret = false; bool ret = false;
settings_t* settings = config_get_ptr(); settings_t* settings = config_get_ptr();
const char *dir_video_shader = settings->paths.directory_video_shader; const char *dir_video_shader = settings->paths.directory_video_shader;
//struct video_shader* shader = menu_shader_get();
enum rarch_shader_type type = menu_shader_manager_get_type(shader); enum rarch_shader_type type = menu_shader_manager_get_type(shader);
//if (!video_shader_apply_shader(settings, type, preset_path, true))
// goto clear;
if (string_is_empty(preset_path)) if (string_is_empty(preset_path))
{ {
ret = true; ret = true;