mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
read_comprssed_file - cleanups
This commit is contained in:
parent
6a7674dca1
commit
20cf52a316
20
file_ops.c
20
file_ops.c
@ -479,18 +479,16 @@ int read_compressed_file(const char * path, void **buf,
|
|||||||
const char* file_ext = NULL;
|
const char* file_ext = NULL;
|
||||||
struct string_list *str_list = string_split(path, "#");
|
struct string_list *str_list = string_split(path, "#");
|
||||||
|
|
||||||
if (optional_filename)
|
/* Safety check.
|
||||||
|
* If optional_filename and optional_filename
|
||||||
|
* exists, we simply return 0,
|
||||||
|
* hoping that optional_filename is the
|
||||||
|
* same as requested.
|
||||||
|
*/
|
||||||
|
if (optional_filename && path_file_exists(optional_filename))
|
||||||
{
|
{
|
||||||
/* Safety check. * If optional_filename and optional_filename
|
*length = 0;
|
||||||
* exists, we simply return 0,
|
return 1;
|
||||||
* hoping that optional_filename is the
|
|
||||||
* same as requested.
|
|
||||||
*/
|
|
||||||
if(path_file_exists(optional_filename))
|
|
||||||
{
|
|
||||||
*length = 0;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We assure that there is something after the '#' symbol.
|
/* We assure that there is something after the '#' symbol.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user