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

Function CDVDsys_ChangeSource

pcsx2/CDVD/CDVDcommon.cpp:331–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void CDVDsys_ChangeSource(CDVD_SourceType type)
332{
333 if (CDVD)
334 DoCDVDclose();
335
336 switch (m_CurrentSourceType = type)
337 {
338 case CDVD_SourceType::Iso:
339 CDVD = &CDVDapi_Iso;
340 break;
341
342 case CDVD_SourceType::Disc:
343 CDVD = &CDVDapi_Disc;
344 break;
345
346 case CDVD_SourceType::NoDisc:
347 CDVD = &CDVDapi_NoDisc;
348 break;
349
350 jNO_DEFAULT;
351 }
352}
353
354bool DoCDVDopen(Error* error)
355{

Callers 4

AutoDetectSourceMethod · 0.85
InitializeMethod · 0.85
ChangeDiscMethod · 0.85
OpenMethod · 0.85

Calls 1

DoCDVDcloseFunction · 0.85

Tested by

no test coverage detected