SplitScript reference / PS1

PS1

state provider

state PS1

Attaches to a supported PlayStation emulator.

The provider discovers emulated main RAM and exposes original PlayStation addresses through the read-only ps1 value of type PS1Emulator. It owns discovery for ePSXe, pSX, DuckStation, Mednafen, PCSX-Redux, XEBRA, and supported RetroArch cores. Declare guest addresses directly instead of recreating emulator-specific DeepPointer mappings.

Examples

Read PlayStation memory

state PS1 {
    health: u16 at 0x80012346
}

Value type

MemberDescriptionAvailable through
PS1EmulatorRetains a discovered PlayStation emulator memory mapping.

Mapping lifecycle

The provider validates its private memory mapping before each state poll. If that mapping disappears while the host process remains open, the current logical attachment ends: attachment-scoped state and pending continuations are cleared, and onDetach runs if onAttach had completed. Discovery then continues cooperatively against the same host process. A replacement mapping starts a new attachment, runs onAttach again, and establishes a fresh old / current baseline.