diff options
| author | Stelios Tsampas <loathingkernel@gmail.com> | 2017-07-10 16:14:43 +0300 |
|---|---|---|
| committer | Stelios Tsampas <loathingkernel@gmail.com> | 2017-07-16 21:20:53 +0300 |
| commit | d880179b2a3aacae96bb4771a3c9e227ca6d5818 (patch) | |
| tree | 96730dce1e5afeef992abc6ae6884577c8ebf53c /libpcsxcore/cdriso.c | |
| parent | 496df34ee4e3861c6e9b0ee8256d575622447563 (diff) | |
| download | pcsxr-d880179b2a3aacae96bb4771a3c9e227ca6d5818.tar.gz | |
Fix compilation on linux.
Diffstat (limited to 'libpcsxcore/cdriso.c')
| -rwxr-xr-x | libpcsxcore/cdriso.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index af4205cf..268f1030 100755 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -88,6 +88,8 @@ static struct { } *compr_img; int (*cdimg_read_func)(FILE *f, unsigned int base, void *dest, int sector); +static int cdread_normal(FILE *f, unsigned int base, void *dest, int sector); +static int cdread_ecm_decode(FILE *f, unsigned int base, void *dest, int sector); char* CALLBACK CDR__getDriveLetter(void); long CALLBACK CDR__configure(void); @@ -1301,7 +1303,7 @@ static int cdread_sub_mixed(FILE *f, unsigned int base, void *dest, int sector) 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; @@ -1380,7 +1382,7 @@ static int cdread_compressed(FILE *f, unsigned int base, void *dest, int sector) 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); |
