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

◆ CheckTrack()

void SRL::System::CheckTrack ( int32_t trackNumber)
inlinestatic

Verify a CD track position against TOC data.

Parameters
trackNumberTrack number to verify (must be >= 2; specify a CD-DA track)

Compares the specified track's start position against TOC data. If they match, the function returns normally. If they do not match, control is transferred to the CD Multiplayer and this function does not return.

Warning
This function may never return if the disc is considered invalid (track mismatch, missing track, or CDC error). Use only for disc authentication checks, typically at startup.
Note
Track 1 has no meaning for verification. Specify the last CD-DA track for best results.