Skip to content

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.

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 boundary

The 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.

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 directoryWriter / reader and timingPriority, safe change and recovery
emulationstation/.emulationstation/es_input.cfgFrontend input setup writes device mappings; the ArcadeServer service can inspect and perform gated managed patches; EmulationStation uses the frontend mappingsMenu 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 launchThese 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.cfgRetroBat can generate this for the launch; RetroArch reads its final selected configurationA 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 themTreat 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 candidatesPreserve 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/*.keysPad-to-key resolver reads profiles; the separate gated writer can create/patch a reviewed profile after dry-run and confirmationExisting 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.cfgThe pad-to-key resolver reads the app-level template for hotkey/action evidenceThis 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.

  1. 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.
  2. Save and apply the intended cabinet controls. An unapplied draft is not the base.
  3. 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.
  4. 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.
  5. Launch normally through RetroBat. Check the actual emulator child, core, arguments and effective config. A menu that works proves only menu input.
  6. 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.
  7. 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.

ClaimAvailabilityEvidence limit
Path inspection, inputmapping/pad-to-key readers, gated patch servicesPresent in the development sourceImplementation reviewed; installed behavior and physical QA not established here
Legacy idle preparationSource-reviewed older preparation pathNormal stop requests restoration; this does not identify an installed release or prove gameplay
Persistent managed-base preparationDevelopment source onlyA normal stop retains the valid base; removal/root-change recovery remains gated and separate from physical QA
Common installation/config ownership and expanded family adaptersDevelopment source onlyNot promoted to shipped; separate automated and physical evidence required
Universal RetroBat version/core/device compatibilityUnknownNot established