From 2d5a9a02425951f4efed764d135be96867eb532f Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Fri, 7 May 2010 04:31:29 +0000 Subject: preparing for refactor/cleanup, moved all definations into .c files, other minor cleanups. (Breaks Mac OS X and maybe windows as well for now, will fix later.) git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@47542 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/cdriso.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'libpcsxcore/cdriso.c') 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 #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); +} -- cgit v1.2.3