mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Make file_archive_get_default_file_backend public scope
This commit is contained in:
parent
6f3adc900d
commit
021d8e6af8
@ -281,7 +281,7 @@ static int file_archive_extract_cb(const char *name, const char *valid_exts,
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const struct zlib_file_backend *file_archive_get_default_file_backend(void)
|
||||
const struct zlib_file_backend *file_archive_get_default_file_backend(void)
|
||||
{
|
||||
return &zlib_backend;
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ struct rpng_process_t
|
||||
unsigned pos;
|
||||
} pass;
|
||||
void *stream;
|
||||
const struct zlib_file_backend *stream_backend;
|
||||
};
|
||||
|
||||
struct rpng
|
||||
@ -952,6 +953,9 @@ int rpng_nbio_load_image_argb_process(rpng_t *rpng,
|
||||
{
|
||||
if (!rpng->process.initialized)
|
||||
{
|
||||
if (!rpng->process.stream_backend)
|
||||
rpng->process.stream_backend = file_archive_get_default_file_backend();
|
||||
|
||||
if (!rpng_load_image_argb_process_init(rpng, data, width,
|
||||
height))
|
||||
return PNG_PROCESS_ERROR;
|
||||
|
@ -183,6 +183,8 @@ uint64_t zlib_stream_get_total_out(void *data);
|
||||
void zlib_stream_decrement_total_out(void *data,
|
||||
unsigned subtraction);
|
||||
|
||||
const struct zlib_file_backend *file_archive_get_default_file_backend(void);
|
||||
|
||||
const struct zlib_file_backend zlib_backend;
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user