task_push_decompress - use path_is_valid instead of filestream_exists

This commit is contained in:
twinaphex 2019-04-27 05:16:02 +02:00
parent 7fb5d9da62
commit 49156e645e

View File

@ -18,7 +18,6 @@
#include <string/stdstring.h>
#include <file/file_path.h>
#include <file/archive_file.h>
#include <streams/file_stream.h>
#include <retro_miscellaneous.h>
#include <compat/strl.h>
@ -291,7 +290,7 @@ bool task_push_decompress(
/* ZIP or APK only */
if (
!filestream_exists(source_file) ||
!path_is_valid(source_file) ||
(
!string_is_equal_noncase(ext, "zip")
&& !string_is_equal_noncase(ext, "apk")