Repository navigation
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.
-
Windows: your own registry,
HKEY_CURRENT_USER, which is where games keep per-user settings. Keys underHKEY_LOCAL_MACHINEcan 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.regandsystem.regfiles). - Native Linux games don't use a registry.
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.
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.
- 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.regand leaves the rest of the file exactly as it was.
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.
rigswap config add "Valheim" "HKCU\Software\IronGate\Valheim" --registry --exclude "*Save*"RigSwap · GPL-3.0 · Report a problem