diff --git a/README.md b/README.md index 3472b75a..b4841585 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ An Example Game: installDir: AnExampleGame: {} registry: - /Software/An Example Game: + HKEY_CURRENT_USER/Software/An Example Game: tags: - save - config @@ -59,10 +59,10 @@ This means: * `/saves` will be backed up on any system. * `/settings.json` will be backed up if you're using Windows or Linux. * `/other` will be backed up if you're using Mac and Steam. -* On Windows, the registry path `/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%` on Windows | | `` | `$XDG_DATA_HOME` on Linux | | `` | `$XDG_CONFIG_HOME` on Linux | -| `` | `HKEY_CURRENT_USER` in the Windows registry | -| `` | `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. diff --git a/data/manifest.yaml b/data/manifest.yaml index 34cfdf8b..60890b39 100644 --- a/data/manifest.yaml +++ b/data/manifest.yaml @@ -2,7 +2,7 @@ installDir: '! That Bastard Is Trying To Steal Our Gold !': {} registry: - /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: - /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: - /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: - /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: - /Software/EightyEightGames/10000000: + HKEY_CURRENT_USER/Software/EightyEightGames/10000000: tags: - config - save @@ -589,7 +589,7 @@ $1 Ride: installDir: RocketMan: {} registry: - '/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: - /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: - /SOFTWARE/JeppeCarlsen/140: + HKEY_CURRENT_USER/SOFTWARE/JeppeCarlsen/140: tags: - save steam: @@ -873,7 +873,7 @@ $1 Ride: installDir: 16bittrader: {} registry: - /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: - /Software/Robot Gentleman/60 Parsecs: + HKEY_CURRENT_USER/Software/Robot Gentleman/60 Parsecs: tags: - config steam: diff --git a/src/importer.ts b/src/importer.ts index ae77ce1d..701e1ad7 100644 --- a/src/importer.ts +++ b/src/importer.ts @@ -93,12 +93,12 @@ const PATH_ARGS: { [arg: string]: { mapped: string, when?: Constraint, registry? }, }, hkcu: { - mapped: "", + mapped: "HKEY_CURRENT_USER", when: { os: "windows" }, registry: true, }, hklm: { - mapped: "", + mapped: "HKEY_LOCAL_MACHINE", when: { os: "windows" }, registry: true, },