mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
task_push_decompress - use path_is_valid instead of filestream_exists
This commit is contained in:
parent
7fb5d9da62
commit
49156e645e
@ -18,7 +18,6 @@
|
|||||||
#include <string/stdstring.h>
|
#include <string/stdstring.h>
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
#include <file/archive_file.h>
|
#include <file/archive_file.h>
|
||||||
#include <streams/file_stream.h>
|
|
||||||
#include <retro_miscellaneous.h>
|
#include <retro_miscellaneous.h>
|
||||||
#include <compat/strl.h>
|
#include <compat/strl.h>
|
||||||
|
|
||||||
@ -291,7 +290,7 @@ bool task_push_decompress(
|
|||||||
|
|
||||||
/* ZIP or APK only */
|
/* ZIP or APK only */
|
||||||
if (
|
if (
|
||||||
!filestream_exists(source_file) ||
|
!path_is_valid(source_file) ||
|
||||||
(
|
(
|
||||||
!string_is_equal_noncase(ext, "zip")
|
!string_is_equal_noncase(ext, "zip")
|
||||||
&& !string_is_equal_noncase(ext, "apk")
|
&& !string_is_equal_noncase(ext, "apk")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user