Skip to content

Registry Settings

QPfixxy edited this page Nov 21, 2026 · 1 revision

Registry Settings

Many games, especially Unity games, keep their graphics settings in the Windows registry instead of a file. RigSwap swaps registry keys as safely as files.

Where it works

  • Windows: your own registry, HKEY_CURRENT_USER, which is where games keep per-user settings. Keys under HKEY_LOCAL_MACHINE can be read, but changing them needs administrator rights, which RigSwap doesn't use, so switching such a key fails (and is rolled back).
  • Linux, games under Proton or Wine: the registry inside the game's prefix (the user.reg and system.reg files).
  • Native Linux games don't use a registry.

Adding a registry key

Usually it's found for you: the game config database lists registry keys, Unity games are recognised by their engine, and Learn mode notices registry changes.

To add one by hand, click Add registry key… in the game's details panel and type the key, for example:

HKEY_CURRENT_USER\Software\IronGate\Valheim

(HKCU\... works too.) RigSwap then asks which values count.

Choosing values (keep saves out)

A game's registry key often holds saves as well as settings. Select the key and click Choose values…:

  • Include: only these values, e.g. *Resolution*, *Quality*.
  • Exclude: never these, e.g. *Save*, *Progress*.

Sub-keys are written like folders, e.g. Graphics/*.

Unity's own display values are a safe starting point: Screenmanager* (resolution, fullscreen) and UnityGraphicsQuality* (quality level). That's what RigSwap uses automatically for Unity games.

How swapping works

  • RigSwap saves every included value in the key and its sub-keys, with its exact type.
  • Applying writes only the values in the saved copy. It never deletes values that weren't saved.
  • The values it's about to change are backed up first. Undo puts each one back exactly, and removes any value a switch created.
  • Inside a Proton or Wine prefix, RigSwap edits only the lines that change in user.reg/system.reg and leaves the rest of the file exactly as it was.

Proton and Wine: close the game fully

While a game runs, Wine keeps its registry in memory and writes it back out when it shuts down, which would undo a swap. So for games with registry settings in a prefix, RigSwap waits until that prefix's wineserver has stopped (a few seconds after the game closes), not just the game.

Command line

rigswap config add "Valheim" "HKCU\Software\IronGate\Valheim" --registry --exclude "*Save*"

Clone this wiki locally