Remove placeholders in registry paths

This commit is contained in:
mtkennerly 2020-06-30 23:35:55 -04:00
parent babf173b78
commit 64e19059ec
3 changed files with 16 additions and 17 deletions

View file

@ -46,7 +46,7 @@ An Example Game:
installDir: installDir:
AnExampleGame: {} AnExampleGame: {}
registry: registry:
<regHkcu>/Software/An Example Game: HKEY_CURRENT_USER/Software/An Example Game:
tags: tags:
- save - save
- config - config
@ -59,10 +59,10 @@ This means:
* `<base>/saves` will be backed up on any system. * `<base>/saves` will be backed up on any system.
* `<base>/settings.json` will be backed up if you're using Windows or Linux. * `<base>/settings.json` will be backed up if you're using Windows or Linux.
* `<base>/other` will be backed up if you're using Mac and Steam. * `<base>/other` will be backed up if you're using Mac and Steam.
* On Windows, the registry path `<regHkcu>/Software/An Example Game` will be * On Windows, the registry key `HKEY_CURRENT_USER/Software/An Example Game` will be
backed up. backed up.
Paths can include these placeholders: Paths in the `files` section can include these placeholders:
| placeholder | meaning | | placeholder | meaning |
|---------------------|----------------------------------------------------------------------------------------| |---------------------|----------------------------------------------------------------------------------------|
@ -80,8 +80,6 @@ Paths can include these placeholders:
| `<winDir>` | `%WINDIR%` on Windows | | `<winDir>` | `%WINDIR%` on Windows |
| `<xdgData>` | `$XDG_DATA_HOME` on Linux | | `<xdgData>` | `$XDG_DATA_HOME` on Linux |
| `<xdgConfig>` | `$XDG_CONFIG_HOME` on Linux | | `<xdgConfig>` | `$XDG_CONFIG_HOME` on Linux |
| `<regHkcu>` | `HKEY_CURRENT_USER` in the Windows registry |
| `<regHklm>` | `HKEY_LOCAL_MACHINE` in the Windows registry |
## Implementation ## Implementation
Tools must implement the following in addition to respecting the schema: Tools must implement the following in addition to respecting the schema:
@ -91,6 +89,7 @@ Tools must implement the following in addition to respecting the schema:
directories. directories.
* When a path identifies a folder, the backup includes all of its files * When a path identifies a folder, the backup includes all of its files
and subdirectories recursively. and subdirectories recursively.
* When backing up registry keys, the backup includes all sub-keys recursively.
* Relative paths must be resolved relative to the location of the manifest file. * Relative paths must be resolved relative to the location of the manifest file.
This is important for secondary manifests to work correctly without This is important for secondary manifests to work correctly without
hard-coding their location. hard-coding their location.

View file

@ -2,7 +2,7 @@
installDir: installDir:
'! That Bastard Is Trying To Steal Our Gold !': {} '! That Bastard Is Trying To Steal Our Gold !': {}
registry: registry:
<regHkcu>/SOFTWARE/WTFOMGames/That Dick Trying To Steal Our Gold: HKEY_CURRENT_USER/SOFTWARE/WTFOMGames/That Dick Trying To Steal Our Gold:
tags: tags:
- config - config
- save - save
@ -106,7 +106,7 @@ $1 Ride:
installDir: installDir:
Test Expected Behaviour: {} Test Expected Behaviour: {}
registry: registry:
<regHkcu>/Software/Veslo Games/Test Expected Behaviour: HKEY_CURRENT_USER/Software/Veslo Games/Test Expected Behaviour:
tags: tags:
- config - config
steam: steam:
@ -284,7 +284,7 @@ $1 Ride:
installDir: installDir:
123kickit: {} 123kickit: {}
registry: registry:
<regHkcu>/Software/Dejobaan Games/Ugly Baby: HKEY_CURRENT_USER/Software/Dejobaan Games/Ugly Baby:
tags: tags:
- config - config
steam: steam:
@ -354,7 +354,7 @@ $1 Ride:
installDir: installDir:
10 Years After: {} 10 Years After: {}
registry: registry:
<regHkcu>/SOFTWARE/Ten Tree Games/10 Years After: HKEY_CURRENT_USER/SOFTWARE/Ten Tree Games/10 Years After:
tags: tags:
- config - config
- save - save
@ -371,7 +371,7 @@ $1 Ride:
installDir: installDir:
'10000000': {} '10000000': {}
registry: registry:
<regHkcu>/Software/EightyEightGames/10000000: HKEY_CURRENT_USER/Software/EightyEightGames/10000000:
tags: tags:
- config - config
- save - save
@ -589,7 +589,7 @@ $1 Ride:
installDir: installDir:
RocketMan: {} RocketMan: {}
registry: registry:
'<regHkcu>/Software/Bandai Namco/11-11: Memories Retold': 'HKEY_CURRENT_USER/Software/Bandai Namco/11-11: Memories Retold':
tags: tags:
- config - config
steam: steam:
@ -765,7 +765,7 @@ $1 Ride:
installDir: installDir:
12 orbits: {} 12 orbits: {}
registry: registry:
<regHkcu>/Software/Roman Uhlig/12 orbits: HKEY_CURRENT_USER/Software/Roman Uhlig/12 orbits:
tags: tags:
- config - config
- save - save
@ -822,7 +822,7 @@ $1 Ride:
installDir: installDir:
'140': {} '140': {}
registry: registry:
<regHkcu>/SOFTWARE/JeppeCarlsen/140: HKEY_CURRENT_USER/SOFTWARE/JeppeCarlsen/140:
tags: tags:
- save - save
steam: steam:
@ -873,7 +873,7 @@ $1 Ride:
installDir: installDir:
16bittrader: {} 16bittrader: {}
registry: registry:
<regHkcu>/SOFTWARE/Forever Entertainment/16bit Trader: HKEY_CURRENT_USER/SOFTWARE/Forever Entertainment/16bit Trader:
tags: tags:
- config - config
steam: steam:
@ -1156,7 +1156,7 @@ $1 Ride:
installDir: installDir:
60 Parsecs!: {} 60 Parsecs!: {}
registry: registry:
<regHkcu>/Software/Robot Gentleman/60 Parsecs: HKEY_CURRENT_USER/Software/Robot Gentleman/60 Parsecs:
tags: tags:
- config - config
steam: steam:

View file

@ -93,12 +93,12 @@ const PATH_ARGS: { [arg: string]: { mapped: string, when?: Constraint, registry?
}, },
}, },
hkcu: { hkcu: {
mapped: "<regHkcu>", mapped: "HKEY_CURRENT_USER",
when: { os: "windows" }, when: { os: "windows" },
registry: true, registry: true,
}, },
hklm: { hklm: {
mapped: "<regHklm>", mapped: "HKEY_LOCAL_MACHINE",
when: { os: "windows" }, when: { os: "windows" },
registry: true, registry: true,
}, },