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

Function cdvdReadDvdDualInfo

pcsx2/CDVD/CDVD.cpp:788–794  ·  view source on GitHub ↗

check whether disc is single or dual layer if its dual layer, check what the disctype is and what sector number layer1 starts at args: gets value for dvd type (0=single layer, 1=ptp, 2=otp) gets value for start lsn of layer1 returns: 1 if on dual layer disc 0 if not on dual layer disc

Source from the content-addressed store, hash-verified

786// returns: 1 if on dual layer disc
787// 0 if not on dual layer disc
788static s32 cdvdReadDvdDualInfo(s32* dualType, u32* layer1Start) noexcept
789{
790 *dualType = 0;
791 *layer1Start = 0;
792
793 return CDVD->getDualInfo(dualType, layer1Start);
794}
795
796static bool cdvdIsDVD() noexcept
797{

Callers 4

cdvdTrayStateDetectingFunction · 0.85
cdvdRotationTimeFunction · 0.85
cdvdBlockReadTimeFunction · 0.85
cdvdReadSectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected