SplitScript reference / PS2Emulator

PS2Emulator

struct

struct PS2Emulator

Retains a discovered PlayStation 2 emulator memory mapping.

PCSX2 keeps its RAM base behind a native pointer that may change while the emulator is running. RetroArch exposes a stable base for the lifetime of its loaded PS2 core. PS2Emulator.read hides those backend details and always accepts original PS2 addresses.

Examples

Use the attached PS2 memory provider

let emulator: PS2Emulator = ps2

Capabilities

MemberDescriptionAvailable through
MemoryReaderReads typed values and bounded strings from an address space.

Methods

MemberDescriptionAvailable through
readReads one fixed-layout value from this address space.Available through MemoryReader
readUtf16LeReads a bounded NUL-terminated little-endian UTF-16 string.Available through MemoryReader
readUtf8Reads a bounded NUL-terminated UTF-8 string.Available through MemoryReader
readReads a typed value from emulated PlayStation 2 memory.