mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Turn function static
This commit is contained in:
parent
88c0024a52
commit
09f72c1465
@ -666,7 +666,7 @@ bool video_shader_write_preset(const char *path,
|
|||||||
*
|
*
|
||||||
* The returned string needs to be freed.
|
* The returned string needs to be freed.
|
||||||
*/
|
*/
|
||||||
char *video_shader_read_reference_path(const char *path)
|
static char *video_shader_read_reference_path(const char *path)
|
||||||
{
|
{
|
||||||
/* We want shader presets that point to other presets.
|
/* We want shader presets that point to other presets.
|
||||||
*
|
*
|
||||||
@ -694,17 +694,15 @@ char *video_shader_read_reference_path(const char *path)
|
|||||||
RFILE *file = NULL;
|
RFILE *file = NULL;
|
||||||
char *line = NULL;
|
char *line = NULL;
|
||||||
|
|
||||||
if (string_is_empty(path))
|
if (string_is_empty(path) || !path_is_valid(path))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (!path_is_valid(path))
|
file = filestream_open(path,
|
||||||
return NULL;
|
RETRO_VFS_FILE_ACCESS_READ,
|
||||||
|
RETRO_VFS_FILE_ACCESS_HINT_NONE);
|
||||||
file = filestream_open(path, RETRO_VFS_FILE_ACCESS_READ, RETRO_VFS_FILE_ACCESS_HINT_NONE);
|
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
line = filestream_getline(file);
|
line = filestream_getline(file);
|
||||||
filestream_close(file);
|
filestream_close(file);
|
||||||
|
|
||||||
if (line && !strncmp("#reference", line, STRLEN_CONST("#reference")))
|
if (line && !strncmp("#reference", line, STRLEN_CONST("#reference")))
|
||||||
|
@ -174,17 +174,6 @@ bool video_shader_write_preset(const char *path,
|
|||||||
const char *shader_dir,
|
const char *shader_dir,
|
||||||
const struct video_shader *shader, bool reference);
|
const struct video_shader *shader, bool reference);
|
||||||
|
|
||||||
/**
|
|
||||||
* video_shader_read_reference_path:
|
|
||||||
* @path : File to read
|
|
||||||
*
|
|
||||||
* Returns: the reference path of a preset if it exists,
|
|
||||||
* otherwise returns NULL.
|
|
||||||
*
|
|
||||||
* The returned string needs to be freed.
|
|
||||||
*/
|
|
||||||
char *video_shader_read_reference_path(const char *path);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* video_shader_read_preset:
|
* video_shader_read_preset:
|
||||||
* @path : File to read
|
* @path : File to read
|
||||||
|
Loading…
x
Reference in New Issue
Block a user