SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches

◆ CheckMpeg()

int32_t SRL::System::CheckMpeg ( int32_t dummy = 0)
inlinestatic

Check MPEG cartridge status (blocking).

Parameters
dummyReserved parameter - must always be 0
Returns
Positive value if MPEG cartridge is present and operational, negative value on error or if no MPEG cartridge is installed

Calls the BIOS entry at 0x6000274. This function blocks until the check completes. Must be called after every disc swap (CD door open) and after a CD block soft reset.

Note
Do not call during SCU-DMA transfers (A-bus conflict). If the check fails, retry once before treating as a permanent failure.