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
| Member | Description | Available through |
|---|---|---|
| MemoryReader | Reads typed values and bounded strings from an address space. |
Methods
| Member | Description | Available through |
|---|---|---|
| read | Reads one fixed-layout value from this address space. | Available through MemoryReader |
| readUtf16Le | Reads a bounded NUL-terminated little-endian UTF-16 string. | Available through MemoryReader |
| readUtf8 | Reads a bounded NUL-terminated UTF-8 string. | Available through MemoryReader |
| read | Reads a typed value from emulated PlayStation 2 memory. |