X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fcdrcimg%2Fcdrcimg.c;h=9a74908159e9c41c27add2c9ca302822989a20c7;hb=226a5691296bfb4f22d916348821b0eed6399a89;hp=007e96b96d02eccf2bf82197a1920aff3fd2efb2;hpb=625cc17f79f3eaeada1b741974bdc608ae4d2dd2;p=pcsx_rearmed.git diff --git a/plugins/cdrcimg/cdrcimg.c b/plugins/cdrcimg/cdrcimg.c index 007e96b9..9a749081 100644 --- a/plugins/cdrcimg/cdrcimg.c +++ b/plugins/cdrcimg/cdrcimg.c @@ -8,8 +8,6 @@ * See the COPYING file in the top-level directory. */ -#include - #include #include #include @@ -323,7 +321,7 @@ static long handle_eboot(void) int i, ret; FILE *f; - f = fopen_utf8(cd_fname, "rb"); + f = fopen(cd_fname, "rb"); if (f == NULL) { err("missing file: %s: ", cd_fname); perror(NULL); @@ -419,6 +417,8 @@ static long CDRopen(void) char *ext; FILE *f = NULL; + printf("%s cd_file=%d\n", __func__, cd_file == NULL ? 0 : 1); + if (cd_file != NULL) return 0; // it's already open @@ -462,7 +462,7 @@ static long CDRopen(void) return -1; } - f = fopen_utf8(table_fname, "rb"); + f = fopen(table_fname, "rb"); if (f == NULL) { err("missing file: %s: ", table_fname); perror(NULL); @@ -527,7 +527,7 @@ static long CDRopen(void) break; } - cd_file = fopen_utf8(cd_fname, "rb"); + cd_file = fopen(cd_fname, "rb"); if (cd_file == NULL) { err("failed to open: %s: ", table_fname); perror(NULL);