Remove placeholders in registry paths
This commit is contained in:
parent
babf173b78
commit
64e19059ec
3 changed files with 16 additions and 17 deletions
|
@ -46,7 +46,7 @@ An Example Game:
|
|||
installDir:
|
||||
AnExampleGame: {}
|
||||
registry:
|
||||
<regHkcu>/Software/An Example Game:
|
||||
HKEY_CURRENT_USER/Software/An Example Game:
|
||||
tags:
|
||||
- save
|
||||
- config
|
||||
|
@ -59,10 +59,10 @@ This means:
|
|||
* `<base>/saves` will be backed up on any system.
|
||||
* `<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.
|
||||
* 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.
|
||||
|
||||
Paths can include these placeholders:
|
||||
Paths in the `files` section can include these placeholders:
|
||||
|
||||
| placeholder | meaning |
|
||||
|---------------------|----------------------------------------------------------------------------------------|
|
||||
|
@ -80,8 +80,6 @@ Paths can include these placeholders:
|
|||
| `<winDir>` | `%WINDIR%` on Windows |
|
||||
| `<xdgData>` | `$XDG_DATA_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
|
||||
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.
|
||||
* When a path identifies a folder, the backup includes all of its files
|
||||
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.
|
||||
This is important for secondary manifests to work correctly without
|
||||
hard-coding their location.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
installDir:
|
||||
'! That Bastard Is Trying To Steal Our Gold !': {}
|
||||
registry:
|
||||
<regHkcu>/SOFTWARE/WTFOMGames/That Dick Trying To Steal Our Gold:
|
||||
HKEY_CURRENT_USER/SOFTWARE/WTFOMGames/That Dick Trying To Steal Our Gold:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
|
@ -106,7 +106,7 @@ $1 Ride:
|
|||
installDir:
|
||||
Test Expected Behaviour: {}
|
||||
registry:
|
||||
<regHkcu>/Software/Veslo Games/Test Expected Behaviour:
|
||||
HKEY_CURRENT_USER/Software/Veslo Games/Test Expected Behaviour:
|
||||
tags:
|
||||
- config
|
||||
steam:
|
||||
|
@ -284,7 +284,7 @@ $1 Ride:
|
|||
installDir:
|
||||
123kickit: {}
|
||||
registry:
|
||||
<regHkcu>/Software/Dejobaan Games/Ugly Baby:
|
||||
HKEY_CURRENT_USER/Software/Dejobaan Games/Ugly Baby:
|
||||
tags:
|
||||
- config
|
||||
steam:
|
||||
|
@ -354,7 +354,7 @@ $1 Ride:
|
|||
installDir:
|
||||
10 Years After: {}
|
||||
registry:
|
||||
<regHkcu>/SOFTWARE/Ten Tree Games/10 Years After:
|
||||
HKEY_CURRENT_USER/SOFTWARE/Ten Tree Games/10 Years After:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
|
@ -371,7 +371,7 @@ $1 Ride:
|
|||
installDir:
|
||||
'10000000': {}
|
||||
registry:
|
||||
<regHkcu>/Software/EightyEightGames/10000000:
|
||||
HKEY_CURRENT_USER/Software/EightyEightGames/10000000:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
|
@ -589,7 +589,7 @@ $1 Ride:
|
|||
installDir:
|
||||
RocketMan: {}
|
||||
registry:
|
||||
'<regHkcu>/Software/Bandai Namco/11-11: Memories Retold':
|
||||
'HKEY_CURRENT_USER/Software/Bandai Namco/11-11: Memories Retold':
|
||||
tags:
|
||||
- config
|
||||
steam:
|
||||
|
@ -765,7 +765,7 @@ $1 Ride:
|
|||
installDir:
|
||||
12 orbits: {}
|
||||
registry:
|
||||
<regHkcu>/Software/Roman Uhlig/12 orbits:
|
||||
HKEY_CURRENT_USER/Software/Roman Uhlig/12 orbits:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
|
@ -822,7 +822,7 @@ $1 Ride:
|
|||
installDir:
|
||||
'140': {}
|
||||
registry:
|
||||
<regHkcu>/SOFTWARE/JeppeCarlsen/140:
|
||||
HKEY_CURRENT_USER/SOFTWARE/JeppeCarlsen/140:
|
||||
tags:
|
||||
- save
|
||||
steam:
|
||||
|
@ -873,7 +873,7 @@ $1 Ride:
|
|||
installDir:
|
||||
16bittrader: {}
|
||||
registry:
|
||||
<regHkcu>/SOFTWARE/Forever Entertainment/16bit Trader:
|
||||
HKEY_CURRENT_USER/SOFTWARE/Forever Entertainment/16bit Trader:
|
||||
tags:
|
||||
- config
|
||||
steam:
|
||||
|
@ -1156,7 +1156,7 @@ $1 Ride:
|
|||
installDir:
|
||||
60 Parsecs!: {}
|
||||
registry:
|
||||
<regHkcu>/Software/Robot Gentleman/60 Parsecs:
|
||||
HKEY_CURRENT_USER/Software/Robot Gentleman/60 Parsecs:
|
||||
tags:
|
||||
- config
|
||||
steam:
|
||||
|
|
|
@ -93,12 +93,12 @@ const PATH_ARGS: { [arg: string]: { mapped: string, when?: Constraint, registry?
|
|||
},
|
||||
},
|
||||
hkcu: {
|
||||
mapped: "<regHkcu>",
|
||||
mapped: "HKEY_CURRENT_USER",
|
||||
when: { os: "windows" },
|
||||
registry: true,
|
||||
},
|
||||
hklm: {
|
||||
mapped: "<regHklm>",
|
||||
mapped: "HKEY_LOCAL_MACHINE",
|
||||
when: { os: "windows" },
|
||||
registry: true,
|
||||
},
|
||||
|
|
Reference in a new issue