MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / cdvdTrayStateDetecting

Function cdvdTrayStateDetecting

pcsx2/CDVD/CDVD.cpp:804–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804static int cdvdTrayStateDetecting()
805{
806 if (cdvd.Tray.trayState == CDVD_DISC_DETECTING)
807 return CDVD_TYPE_DETCT;
808
809 if (cdvdIsDVD())
810 {
811 u32 layer1Start;
812 s32 dualType;
813
814 cdvdReadDvdDualInfo(&dualType, &layer1Start);
815
816 if (dualType > 0)
817 return CDVD_TYPE_DETCTDVDD;
818 else
819 return CDVD_TYPE_DETCTDVDS;
820 }
821
822 if (cdvd.DiscType != CDVD_TYPE_NODISC)
823 return CDVD_TYPE_DETCTCD;
824 else
825 return CDVD_TYPE_DETCT; //Detecting any kind of disc existing
826}
827static u32 cdvdRotationTime(CDVD_MODE_TYPE mode)
828{
829 // CAV rotation is constant (minimum speed to maintain exact speed on outer dge

Callers 1

cdvdReadFunction · 0.85

Calls 2

cdvdIsDVDFunction · 0.85
cdvdReadDvdDualInfoFunction · 0.85

Tested by

no test coverage detected