Add winDocuments placeholder
This commit is contained in:
parent
d715380e0b
commit
71bff495f5
6 changed files with 141 additions and 55 deletions
35
README.md
35
README.md
|
@ -64,23 +64,24 @@ This means:
|
|||
|
||||
Paths can include these placeholders:
|
||||
|
||||
| placeholder | meaning |
|
||||
|---------------------|---------------------------------------------------------------------------|
|
||||
| `<root>` | a directory where games are installed (configured in backup tool) |
|
||||
| `<game>` | an `installDir` (if defined) or the game's canonical name in the manifest |
|
||||
| `<base>` | shorthand for `<root>/**/<game>` |
|
||||
| `<home>` | current user's home directory in the OS (`~`) |
|
||||
| `<storeUserId>` | current user's ID in the game store |
|
||||
| `<osUserName>` | current user's name in the OS |
|
||||
| `<winAppData>` | `%APPDATA%` on Windows |
|
||||
| `<winLocalAppData>` | `%LOCALAPPDATA%` on Windows |
|
||||
| `<winPublic>` | `%PUBLIC%` on Windows |
|
||||
| `<winProgramData>` | `%PROGRAMDATA%` on Windows |
|
||||
| `<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 |
|
||||
| placeholder | meaning |
|
||||
|---------------------|----------------------------------------------------------------------------------------|
|
||||
| `<root>` | a directory where games are installed (configured in backup tool) |
|
||||
| `<game>` | an `installDir` (if defined) or the game's canonical name in the manifest |
|
||||
| `<base>` | shorthand for `<root>/**/<game>` |
|
||||
| `<home>` | current user's home directory in the OS (`~`) |
|
||||
| `<storeUserId>` | current user's ID in the game store |
|
||||
| `<osUserName>` | current user's name in the OS |
|
||||
| `<winAppData>` | `%APPDATA%` on Windows |
|
||||
| `<winLocalAppData>` | `%LOCALAPPDATA%` on Windows |
|
||||
| `<winDocuments>` | `<home>/Documents` (f.k.a. `<home>/My Documents`) or a localized equivalent on Windows |
|
||||
| `<winPublic>` | `%PUBLIC%` on Windows |
|
||||
| `<winProgramData>` | `%PROGRAMDATA%` on Windows |
|
||||
| `<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:
|
||||
|
|
|
@ -130,11 +130,6 @@ $1 Ride:
|
|||
id: 525480
|
||||
0 A.D.:
|
||||
files:
|
||||
<home>/Documents/My Games/0ad:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Library/Application/ Support/0ad:
|
||||
tags:
|
||||
- save
|
||||
|
@ -145,6 +140,11 @@ $1 Ride:
|
|||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<winDocuments>/My Games/0ad:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
<xdgConfig>/0ad:
|
||||
tags:
|
||||
- config
|
||||
|
@ -165,7 +165,7 @@ $1 Ride:
|
|||
id: 639880
|
||||
007 Legends:
|
||||
files:
|
||||
<home>/Documents/My Games/Activision/007 Legends:
|
||||
<winDocuments>/My Games/Activision/007 Legends:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -508,18 +508,18 @@ $1 Ride:
|
|||
id: 970890
|
||||
1001 Spikes:
|
||||
files:
|
||||
<home>/Documents/My Games/1001 Spikes:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Library/Application Support/1001 Spikes:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
when:
|
||||
- os: mac
|
||||
<winDocuments>/My Games/1001 Spikes:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
<xdgData>/1001 spikes:
|
||||
tags:
|
||||
- config
|
||||
|
@ -890,12 +890,12 @@ $1 Ride:
|
|||
id: 855320
|
||||
'18 Wheels of Steel: Across America':
|
||||
files:
|
||||
<home>/Documents/18 WoS Across America/config.cfg:
|
||||
<winDocuments>/18 WoS Across America/config.cfg:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Documents/18 WoS Across America/saves:
|
||||
<winDocuments>/18 WoS Across America/saves:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -906,12 +906,12 @@ $1 Ride:
|
|||
id: 514160
|
||||
'18 Wheels of Steel: American Long Haul':
|
||||
files:
|
||||
<home>/Documents/18 WoS American Long Haul:
|
||||
<winDocuments>/18 WoS American Long Haul:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Documents/18 WoS American Long Haul/save:
|
||||
<winDocuments>/18 WoS American Long Haul/save:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -922,12 +922,12 @@ $1 Ride:
|
|||
id: 12520
|
||||
'18 Wheels of Steel: Convoy':
|
||||
files:
|
||||
<home>/Documents/18 WoS Convoy:
|
||||
<winDocuments>/18 WoS Convoy:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Documents/18 WoS Convoy/save:
|
||||
<winDocuments>/18 WoS Convoy/save:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -938,12 +938,12 @@ $1 Ride:
|
|||
id: 514170
|
||||
'18 Wheels of Steel: Extreme Trucker':
|
||||
files:
|
||||
<home>/Documents/18 WoS Extreme Trucker:
|
||||
<winDocuments>/18 WoS Extreme Trucker:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Documents/18 WoS Extreme Trucker/profile##:
|
||||
<winDocuments>/18 WoS Extreme Trucker/profile##:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -954,12 +954,12 @@ $1 Ride:
|
|||
id: 33730
|
||||
'18 Wheels of Steel: Extreme Trucker 2':
|
||||
files:
|
||||
<home>/Documents/18 WoS Extreme Trucker 2:
|
||||
<winDocuments>/18 WoS Extreme Trucker 2:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Documents/18 WoS Extreme Trucker 2/profile##:
|
||||
<winDocuments>/18 WoS Extreme Trucker 2/profile##:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -970,12 +970,12 @@ $1 Ride:
|
|||
id: 362780
|
||||
'18 Wheels of Steel: Haulin''':
|
||||
files:
|
||||
<home>/Documents/18 WoS Haulin:
|
||||
<winDocuments>/18 WoS Haulin:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Documents/18 WoS Haulin/save:
|
||||
<winDocuments>/18 WoS Haulin/save:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -986,12 +986,12 @@ $1 Ride:
|
|||
id: 514180
|
||||
'18 Wheels of Steel: Pedal to the Metal':
|
||||
files:
|
||||
<home>/Documents/18 WoS Pedal to the Metal/config.cfg:
|
||||
<winDocuments>/18 WoS Pedal to the Metal/config.cfg:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Documents/18 WoS Pedal to the Metal/saves:
|
||||
<winDocuments>/18 WoS Pedal to the Metal/saves:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -1279,6 +1279,22 @@ Celeste:
|
|||
Celeste: {}
|
||||
steam:
|
||||
id: 504230
|
||||
Dark Souls III:
|
||||
files:
|
||||
<winAppData>/DarkSoulsIII/<storeUserId>:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
<winAppData>/DarkSoulsIII/GraphicsConfig.xml:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
installDir:
|
||||
DARK SOULS III: {}
|
||||
steam:
|
||||
id: 374320
|
||||
Lone Survivor:
|
||||
files:
|
||||
<base>/LoneSurvivor/META-INF/AIR:
|
||||
|
@ -1317,11 +1333,6 @@ Prey:
|
|||
- save
|
||||
when:
|
||||
- os: linux
|
||||
<home>/Documents/My Games/PREY/base:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
<home>/Library/Application Support/Prey/base:
|
||||
tags:
|
||||
- config
|
||||
|
@ -1332,6 +1343,11 @@ Prey:
|
|||
- save
|
||||
when:
|
||||
- os: mac
|
||||
<winDocuments>/My Games/PREY/base:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
installDir:
|
||||
Prey 2006: {}
|
||||
steam:
|
||||
|
@ -1352,3 +1368,69 @@ Prey (2017):
|
|||
Prey: {}
|
||||
steam:
|
||||
id: 480490
|
||||
Stardew Valley:
|
||||
files:
|
||||
<home>/.config/StardewValley:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: mac
|
||||
<home>/.config/StardewValley/Saves:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: mac
|
||||
<winAppData>/StardewValley:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: windows
|
||||
<winAppData>/StardewValley/Saves:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
<xdgConfig>/StardewValley:
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
- os: linux
|
||||
<xdgConfig>/StardewValley/Saves:
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: linux
|
||||
installDir:
|
||||
Stardew Valley: {}
|
||||
steam:
|
||||
id: 413150
|
||||
Undertale:
|
||||
files:
|
||||
<home>/.config/UNDERTALE_linux_steamver:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
when:
|
||||
- os: linux
|
||||
<home>/Library/Application Support/com.tobyfox.undertale:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
when:
|
||||
- os: mac
|
||||
<root>/userdata/<storeUserId>/391540/remote:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
when:
|
||||
- store: steam
|
||||
<winLocalAppData>/UNDERTALE:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
installDir:
|
||||
Undertale: {}
|
||||
steam:
|
||||
id: 391540
|
||||
|
|
|
@ -8811,7 +8811,6 @@
|
|||
* [Dark Snow](https://www.pcgamingwiki.com/wiki/?curid=75526)
|
||||
* [Dark Souls II](https://www.pcgamingwiki.com/wiki/?curid=15753)
|
||||
* [Dark Souls II: Scholar of the First Sin](https://www.pcgamingwiki.com/wiki/?curid=24344)
|
||||
* [Dark Souls III](https://www.pcgamingwiki.com/wiki/?curid=30153)
|
||||
* [Dark Souls Remastered](https://www.pcgamingwiki.com/wiki/?curid=80167)
|
||||
* [Dark Souls: Prepare to Die Edition](https://www.pcgamingwiki.com/wiki/?curid=3367)
|
||||
* [Dark Space Conqueror](https://www.pcgamingwiki.com/wiki/?curid=136958)
|
||||
|
@ -33942,7 +33941,6 @@
|
|||
* [StarCrawlers](https://www.pcgamingwiki.com/wiki/?curid=34362)
|
||||
* [Starcross Arena](https://www.pcgamingwiki.com/wiki/?curid=122142)
|
||||
* [StarCrossed](https://www.pcgamingwiki.com/wiki/?curid=128722)
|
||||
* [Stardew Valley](https://www.pcgamingwiki.com/wiki/?curid=31535)
|
||||
* [Stardrift Nomads](https://www.pcgamingwiki.com/wiki/?curid=59093)
|
||||
* [StarDrive](https://www.pcgamingwiki.com/wiki/?curid=6102)
|
||||
* [StarDrive 2](https://www.pcgamingwiki.com/wiki/?curid=24558)
|
||||
|
@ -40157,7 +40155,6 @@
|
|||
* [UnderParty](https://www.pcgamingwiki.com/wiki/?curid=154116)
|
||||
* [Underrail](https://www.pcgamingwiki.com/wiki/?curid=6710)
|
||||
* [Underspace](https://www.pcgamingwiki.com/wiki/?curid=142204)
|
||||
* [Undertale](https://www.pcgamingwiki.com/wiki/?curid=28770)
|
||||
* [Underture](https://www.pcgamingwiki.com/wiki/?curid=141035)
|
||||
* [UnderWater Adventure](https://www.pcgamingwiki.com/wiki/?curid=42786)
|
||||
* [Underwater Affect](https://www.pcgamingwiki.com/wiki/?curid=123409)
|
||||
|
|
|
@ -114,10 +114,14 @@
|
|||
installDir: 18 WoS Extreme Trucker 2
|
||||
'368000':
|
||||
installDir: 100ft Robot Golf
|
||||
'374320':
|
||||
installDir: DARK SOULS III
|
||||
'375460':
|
||||
installDir: 16bittrader
|
||||
'389120':
|
||||
installDir: 10 Minute Barbarian
|
||||
'391540':
|
||||
installDir: Undertale
|
||||
'396800':
|
||||
installDir: 12 Labours of Hercules IV Mother Nature
|
||||
'3970':
|
||||
|
@ -128,6 +132,8 @@
|
|||
installDir: 1000 Heads Among the Trees
|
||||
'410110':
|
||||
installDir: 12 is Better Than 6
|
||||
'413150':
|
||||
installDir: Stardew Valley
|
||||
'413480':
|
||||
installDir: 101 Ways to Die
|
||||
'414510':
|
||||
|
|
|
@ -26727,7 +26727,7 @@ Dark Souls II:
|
|||
revId: null
|
||||
Dark Souls III:
|
||||
pageId: 30153
|
||||
revId: null
|
||||
revId: 971498
|
||||
Dark Souls Remastered:
|
||||
pageId: 80167
|
||||
revId: null
|
||||
|
@ -102064,7 +102064,7 @@ Starcross Arena:
|
|||
revId: null
|
||||
Stardew Valley:
|
||||
pageId: 31535
|
||||
revId: null
|
||||
revId: 962956
|
||||
Stardrift Nomads:
|
||||
pageId: 59093
|
||||
revId: null
|
||||
|
@ -120634,7 +120634,7 @@ Underspace:
|
|||
revId: null
|
||||
Undertale:
|
||||
pageId: 28770
|
||||
revId: null
|
||||
revId: 971737
|
||||
Underture:
|
||||
pageId: 141035
|
||||
revId: null
|
||||
|
|
|
@ -117,7 +117,7 @@ const PATH_ARGS: { [arg: string]: { mapped: string, when?: Constraint, registry?
|
|||
when: { os: "windows" },
|
||||
},
|
||||
"userprofile\\documents": {
|
||||
mapped: "<home>/Documents",
|
||||
mapped: "<winDocuments>",
|
||||
when: { os: "windows" },
|
||||
},
|
||||
appdata: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue