*/
#include "quakedef.h"
+#include "cdaudio.h"
#include <SDL.h>
/*IMPORTANT:
void CDAudio_SysInit (void)
{
if( SDL_InitSubSystem( SDL_INIT_CDROM ) == -1 )
- Con_SafePrint( "Failed to init the CDROM SDL subsystem!\n" );
+ Con_Print( "Failed to init the CDROM SDL subsystem!\n" );
Cmd_AddCommand( "cddrive", CDAudio_SDL_CDDrive_f );
}
if( numdrives == -1 ) // was the CDROM system initialized correctly?
return -1;
- Con_DPrintf( "Found %i cdrom drives.\n", numdrives );
+ Con_Printf( "Found %i cdrom drives.\n", numdrives );
for( i = 0 ; i < numdrives ; i++, cd = NULL ) {
cd = SDL_CDOpen( i );
if( !cd ) {
- Con_DPrintf( "CD drive %i is invalid.\n", i );
+ Con_Printf( "CD drive %i is invalid.\n", i );
continue;
}
if( IsAudioCD() )
break;
else
- Con_DPrintf( "The CD in drive %i is not an audio cd.\n", i );
+ Con_Printf( "The CD in drive %i is not an audio cd.\n", i );
else
- Con_DPrintf( "No CD in drive %i.\n", i );
+ Con_Printf( "No CD in drive %i.\n", i );
SDL_CDClose( cd );
}