diff options
Diffstat (limited to 'libpcsxcore/cdriso.c')
| -rw-r--r-- | libpcsxcore/cdriso.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index 597dbdfc..856cee9a 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -31,9 +31,9 @@ #include <sys/time.h> #endif -FILE *cdHandle = NULL; -FILE *cddaHandle = NULL; -FILE *subHandle = NULL; +static FILE *cdHandle = NULL; +static FILE *cddaHandle = NULL; +static FILE *subHandle = NULL; static char subChanInterleaved = 0; @@ -843,9 +843,7 @@ static long CALLBACK ISOgetStatus(struct CdrStat *stat) { return 0; } -void imageReaderInit(void) { - assert(hCDRDriver == NULL); - +void cdrIsoInit(void) { CDR_init = ISOinit; CDR_shutdown = ISOshutdown; CDR_open = ISOopen; @@ -867,3 +865,7 @@ void imageReaderInit(void) { numtracks = 0; } + +int cdrIsoActive(void) { + return (cdHandle != NULL); +} |
