SplitScript reference / Wii
Wii
state provider
state Wii
Attaches to a supported Nintendo Wii emulator.
The provider discovers MEM1 and MEM2 and exposes original Wii addresses through the read-only wii value of type WiiEmulator. Multi-byte values use the console's big-endian byte order. It owns discovery for Dolphin and 64-bit RetroArch using dolphin_libretro.dll. Declare MEM1 or MEM2 guest addresses directly instead of recreating Dolphin mappings, DeepPointer chains, or byte swapping.
Examples
Read Wii memory
state Wii {
room: u16 at 0x80001000
}
Value type
| Member | Description | Available through |
|---|---|---|
| WiiEmulator | Retains discovered Nintendo Wii MEM1 and MEM2 mappings. |
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.