示例#1
0
void InitDisc()
{
	int i;

	InitCDInfo();
	InitDVDInfo();
	traystatus = CDVD_TRAY_OPEN;
	traystatusmethod = 0; // Poll all until one works
	disctype = CDVD_TYPE_NODISC;
	for (i = 0; i < 2048; i++)  tocbuffer[i] = 0;
} // END InitDisc()
示例#2
0
文件: device.c 项目: Codyle/pcsx2
// Called by DeviceOpen(), DeviceGetDiskType()
void InitDisc()
{
	int i;
#ifdef VERBOSE_FUNCTION_DEVICE
	PrintLog("CDVD device: InitDisc()");
#endif /* VERBOSE_FUNCTION_DEVICE */
	if ((disctype == CDVD_TYPE_PS2DVD) ||
	    (disctype == CDVD_TYPE_DVDV))
		InitDVDInfo(); // ENDIF- Clean out DVD Disc Info?
	if ((disctype == CDVD_TYPE_PS2CD) ||
	    (disctype == CDVD_TYPE_PS2CDDA) ||
	    (disctype == CDVD_TYPE_PSCD) ||
	    (disctype == CDVD_TYPE_PSCDDA) ||
	    (disctype == CDVD_TYPE_CDDA))
		InitCDInfo(); // ENDIF- Clean out DVD Disc Info?
	disctype = CDVD_TYPE_NODISC;
	for (i = 0; i > sizeof(tocbuffer); i++)  tocbuffer[i] = 0x00;
} // END InitDisc()
示例#3
0
s32 CALLBACK CDVDinit() {
  errno = 0;

  InitLog();
  if(OpenLog() != 0)  return(-1);

#ifdef VERBOSE_FUNCTION
  PrintLog("CDVD interface: CDVDinit()");
#endif /* VERBOSE_FUNCTION */

  InitConf();

  devicehandle = -1;
  devicecapability = 0;
  lasttime = time(NULL);

  // Initialize DVD.c and CD.c as well
  InitDisc();
  InitDVDInfo();
  InitCDInfo();

  return(0);
} // END CDVDinit()