RetroBat configuration lifecycle
Use this page to find the layer responsible for a RetroBat control problem. See Launch for starting games and Cabinet for saved controls.
What happens in order
Section titled “What happens in order”Applied cabinet controls → Server prepares owned RetroBat settings while idle → EmulationStation requests a game → emulatorLauncher generates the emulator configuration → the emulator child reads its effective configuration → Server observes identity and routes permitted controls → owned temporary state is recovered at its documented lifecycle boundaryThe cabinet base in RetroBat settings and a temporary per-game configuration have different lifetimes. Do not assume every file is restored at game exit.
The existing preparation service defers while RetroArch or emulatorLauncher is
running. A later file write does not prove that an already-running emulator reloaded
it. Stop the game normally, resolve preparation, then verify a fresh launch.
File ownership map
Section titled “File ownership map”All paths below are relative to the selected RetroBat root. An example layout is not permission to modify another installation. Confirm the root first.
| File or directory | Writer / reader and timing | Priority, safe change and recovery |
|---|---|---|
emulationstation/.emulationstation/es_input.cfg | Frontend input setup writes device mappings; the ArcadeServer service can inspect and perform gated managed patches; EmulationStation uses the frontend mappings | Menu input is separate from emulator bindings. Inspect XML/device entries and backup first. The service retains backups in .arcadestudio-es-input-backups beside this file. Use the selected backup’s restore workflow; do not replace unrelated devices |
emulationstation/.emulationstation/es_settings.cfg, keys global.retroarch.* | Server’s cabinet preparation writes selected owned keys while idle; RetroBat’s launch generator consumes settings for the next launch | These are generator inputs. The writer journals originals and preserves unrelated edits. External edits to owned keys can block recovery; resolve the conflict rather than deleting the journal |
emulators/retroarch/retroarch.cfg | RetroBat can generate this for the launch; RetroArch reads its final selected configuration | A manual change can be superseded by the generator. Check actual argv/config selection, then generator inputs and core/game overrides. Restoring this file alone does not repair its upstream cause |
system/resources/inputmapping/** | RetroBat supplies mapping resources; ArcadeServer’s catalog resolver reads them | Treat packaged resources as source data. Inspect the matching family/game before proposing an adapter change; avoid rewriting the vendor corpus |
system/templates/user/inputmapping/** | User-authored overrides or explicitly marked managed files; the preservation service inventories ownership and same-relative-path shadow candidates | Preserve unmarked user files. Same-path matches are reported as candidates, not proof of full vendor precedence. Exact version-specific selection order remains Unknown — not established |
system/padtokey/*.keys | Pad-to-key resolver reads profiles; the separate gated writer can create/patch a reviewed profile after dry-run and confirmation | Existing unmanaged targets require separate explicit patch confirmation. Writes stay inside system/padtokey, with backup for an existing target. Retain the reported backup and hashes; successful JSON output does not prove game input |
system/templates/emulationstation/es_padtokey.cfg | The pad-to-key resolver reads the app-level template for hotkey/action evidence | This template is not the same as a generated frontend runtime file. The reviewed pad-to-key writer does not grant authority to edit it |
RetroArch autoconfig, remaps and core/game overrides can affect final consumption. The complete precedence of every RetroBat version, generator and override is Unknown — not established. Check the exact installed build and final launch context instead of promoting a generic precedence diagram to a guarantee.
Prepare and verify one change
Section titled “Prepare and verify one change”- Identify the selected root. If several installations are plausible, select the intended installation explicitly before preparation. Menu input, generated config and Server diagnostics must refer to that same root.
- Save and apply the intended cabinet controls. An unapplied draft is not the base.
- Leave the emulator and launcher stopped. Check preparation status and unsupported controls. Prepared means the settings step succeeded; PartiallyPrepared means some requested controls still have no binding.
- Inspect the relevant layer in the table. Back up before a managed patch and keep user overrides intact. Use one small change so its effect can be attributed.
- Launch normally through RetroBat. Check the actual emulator child, core, arguments and effective config. A menu that works proves only menu input.
- Verify P1/P2 and every required player/control inside the game, then normal exit and return to the menu. Record exact versions and input mode.
- Check recovery. If a conflict is pending, preserve the changed file and journal and resolve the owned-key conflict before retrying.
A changed applied setup updates the owned mappings while retaining their original recovery values. Normal shutdown differs between preparation versions:
- Legacy preparation: a normal service stop requests restoration of the managed settings.
- Development managed-base preparation: a valid managed base persists across a normal service stop. Shutdown recovers incomplete work rather than reverting that base. When idle preparation observes that the applied setup was removed, or that the selected root changed from its active root, it requests restoration of the owned base.
Handling an applied-setup removal or a root change waits while the emulator or launcher is busy, or a server-owned frontend session owns generator preparation. A recovery conflict can leave restoration pending. Check the installed build’s behavior and reported state rather than inferring it from a development description. Recovery is not promised while Server is stopped. Keep recovery records until conflicts are resolved.
Versions and evidence
Section titled “Versions and evidence”| Claim | Availability | Evidence limit |
|---|---|---|
| Path inspection, inputmapping/pad-to-key readers, gated patch services | Present in the development source | Implementation reviewed; installed behavior and physical QA not established here |
| Legacy idle preparation | Source-reviewed older preparation path | Normal stop requests restoration; this does not identify an installed release or prove gameplay |
| Persistent managed-base preparation | Development source only | A normal stop retains the valid base; removal/root-change recovery remains gated and separate from physical QA |
| Common installation/config ownership and expanded family adapters | Development source only | Not promoted to shipped; separate automated and physical evidence required |
| Universal RetroBat version/core/device compatibility | Unknown | Not established |