mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(file_ops.c) Create stream_backend variable
This commit is contained in:
parent
c1364648e7
commit
fe1cbe6a5a
@ -43,6 +43,8 @@
|
||||
#include "verbosity.h"
|
||||
|
||||
#ifdef HAVE_COMPRESSION
|
||||
static const struct zlib_file_backend *stream_backend;
|
||||
|
||||
#ifdef HAVE_7ZIP
|
||||
#include "deps/7zip/7z.h"
|
||||
#include "deps/7zip/7zAlloc.h"
|
||||
@ -515,7 +517,8 @@ int read_compressed_file(const char * path, void **buf,
|
||||
#ifdef HAVE_ZLIB
|
||||
if (string_is_equal_noncase(file_ext, "zip"))
|
||||
{
|
||||
*length = read_zip_file(str_list->elems[0].data, str_list->elems[1].data, buf, optional_filename);
|
||||
stream_backend = file_archive_get_default_file_backend();
|
||||
*length = read_zip_file(str_list->elems[0].data, str_list->elems[1].data, buf, optional_filename);
|
||||
if (*length != -1)
|
||||
ret = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user