slackbuilds_ponce/games/pcsxr/patches/pcsxr-fix-uncompress2.patch
Matteo Bernardini 6dcae16896 games/pcsxr: Updated for version 1.9.95.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2021-04-23 23:25:24 -05:00

21 lines
1 KiB
Diff

diff -up a/pcsxr/libpcsxcore/cdriso.c.orig pcsxr/libpcsxcore/cdriso.c
--- a/pcsxr/libpcsxcore/cdriso.c.orig 2019-06-30 19:54:58.013320015 -0500
+++ a/pcsxr/libpcsxcore/cdriso.c 2019-06-30 19:56:05.351320015 -0500
@@ -913,7 +913,7 @@ static int cdread_sub_mixed(FILE *f, uns
return ret;
}
-static int uncompress2(void *out, unsigned long *out_size, void *in, unsigned long in_size)
+static int uncompress2_internal(void *out, unsigned long *out_size, void *in, unsigned long in_size)
{
static z_stream z;
int ret = 0;
@@ -992,7 +992,7 @@ static int cdread_compressed(FILE *f, un
if (is_compressed) {
cdbuffer_size_expect = sizeof(compr_img->buff_raw[0]) << compr_img->block_shift;
cdbuffer_size = cdbuffer_size_expect;
- ret = uncompress2(compr_img->buff_raw[0], &cdbuffer_size, compr_img->buff_compressed, size);
+ ret = uncompress2_internal(compr_img->buff_raw[0], &cdbuffer_size, compr_img->buff_compressed, size);
if (ret != 0) {
SysPrintf("uncompress failed with %d for block %d, sector %d\n",
ret, block, sector);