SplitScript reference / Language / provider
provider
syntax
provider Name: Provider ["process.exe"] { ... }
Declares one named runtime alternative inside a multi-provider state.
Each provider alternative gives a local StateProvider variant name, a standard-library state provider, that provider's process configuration, and its physical state fields. Alternatives are tried cooperatively in source order only when they accept the attached process. The first one whose provider discovery completes becomes the attachment's read-only provider value. Compatible fields declared by every alternative form the common snapshot interface. Match directly on provider to use alternative-only fields or roots such as process and gba. The process-name union is deduplicated before attachment. Alternatives must use providers that read directly from the attached process; a provider with a prepared attachment context, such as Unity, uses the single-provider state form.
Examples
Refine runtime-specific state
provider Advance: GBA {
level: u32 at 0x03000010;
room: u8 at 0x03000020;
}