SplitScript reference / runtime
runtime
namespace
Reads metadata about the autosplitting runtime host.
These values describe the system running the autosplitting runtime, not necessarily the architecture of the attached game process.
Examples
Inspect the host platform
let hostOs = runtime.operatingSystem() else "unknown"
let hostArchitecture = runtime.architecture() else "unknown"
print(`Running on {hostOs} ({hostArchitecture})`)
Functions
| Member | Description | Available through |
|---|---|---|
| architecture | Returns the runtime host's architecture name. | |
| operatingSystem | Returns the runtime host's operating-system name. |