Change a MiSTer.ini setting
set_iniModify or remove a single MiSTer.ini setting globally or for a specific core while preserving the rest of the file, with a timestamped backup created before changes.
Instructions
Set (or remove) one MiSTer.ini setting, globally or for one core, keeping the rest of the file as it is.
The previous file is saved next to it first (MiSTer.ini..bak). The change takes effect the next time a core loads. A few keys are refused (main, bootcore, shared_folder, debug; see misterfpga://ini-keys). Needs SSH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | A MiSTer.ini key, e.g. vscale_mode (misterfpga://ini-keys lists them). | |
| file | No | MiSTer.ini, or an alternate such as MiSTer_crt.ini (get_ini lists them). | MiSTer.ini |
| host | No | MiSTer name from get_status. Omit when the call already says which (a ref does). | |
| value | Yes | The new value, checked against the key's type and range. null removes the key. | |
| dry_run | No | Show the change (diff) without writing it. | |
| section | No | MiSTer (global), arcade, arcade_vertical, video=<WxH@Hz>, or a core name like SNES. | MiSTer |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| new | Yes | ||
| old | Yes | ||
| diff | Yes | ||
| file | Yes | ||
| host | Yes | ||
| backup | Yes | ||
| detail | Yes | ||
| outcome | Yes | ||
| section | Yes | ||
| warnings | Yes |