notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implify multitap core options
[pcsx_rearmed.git]
/
plugins
/
cdrcimg
/
cdrcimg.c
diff --git
a/plugins/cdrcimg/cdrcimg.c
b/plugins/cdrcimg/cdrcimg.c
index
45016bb
..
007e96b
100644
(file)
--- a/
plugins/cdrcimg/cdrcimg.c
+++ b/
plugins/cdrcimg/cdrcimg.c
@@
-8,6
+8,8
@@
* See the COPYING file in the top-level directory.
*/
* See the COPYING file in the top-level directory.
*/
+#include <compat/fopen_utf8.h>
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@
-100,7
+102,7
@@
static long CDRgetTD(unsigned char track, unsigned char *buffer)
return 0;
}
return 0;
}
-
int uncomp2
(void *out, unsigned long *out_size, void *in, unsigned long in_size)
+
static int uncompress2_pcsx
(void *out, unsigned long *out_size, void *in, unsigned long in_size)
{
static z_stream z;
int ret = 0;
{
static z_stream z;
int ret = 0;
@@
-201,7
+203,7
@@
static long CDRreadTrack(unsigned char *time)
ret = uncompress(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
break;
case CDRC_ZLIB2:
ret = uncompress(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
break;
case CDRC_ZLIB2:
- ret = uncomp
2
(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
+ ret = uncomp
ress2_pcsx
(cdbuffer->raw[0], &cdbuffer_size, cdbuffer->compressed, size);
break;
case CDRC_BZ:
ret = pBZ2_bzBuffToBuffDecompress((char *)cdbuffer->raw, (unsigned int *)&cdbuffer_size,
break;
case CDRC_BZ:
ret = pBZ2_bzBuffToBuffDecompress((char *)cdbuffer->raw, (unsigned int *)&cdbuffer_size,
@@
-321,7
+323,7
@@
static long handle_eboot(void)
int i, ret;
FILE *f;
int i, ret;
FILE *f;
- f = fopen(cd_fname, "rb");
+ f = fopen
_utf8
(cd_fname, "rb");
if (f == NULL) {
err("missing file: %s: ", cd_fname);
perror(NULL);
if (f == NULL) {
err("missing file: %s: ", cd_fname);
perror(NULL);
@@
-460,7
+462,7
@@
static long CDRopen(void)
return -1;
}
return -1;
}
- f = fopen(table_fname, "rb");
+ f = fopen
_utf8
(table_fname, "rb");
if (f == NULL) {
err("missing file: %s: ", table_fname);
perror(NULL);
if (f == NULL) {
err("missing file: %s: ", table_fname);
perror(NULL);
@@
-525,7
+527,7
@@
static long CDRopen(void)
break;
}
break;
}
- cd_file = fopen(cd_fname, "rb");
+ cd_file = fopen
_utf8
(cd_fname, "rb");
if (cd_file == NULL) {
err("failed to open: %s: ", table_fname);
perror(NULL);
if (cd_file == NULL) {
err("failed to open: %s: ", table_fname);
perror(NULL);