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

◆ Exit()

void SRL::System::Exit ( int32_t exitCode = 0)
inlinestatic

Terminate the application.

Parameters
exitCodeFunction code controlling post-exit behavior:
Code Behavior
0 Launch Demo-Demo menu if applicable, else CD Multiplayer
1 Launch CD Multiplayer unconditionally
2 Launch Demo-Demo menu unconditionally
<0 Enter infinite loop (halt)

Performs system re-initialization: disables interrupts, switches to 26 MHz, resets CD block, and restores the default stack pointer (0x6002000). This function does not return.