Map an additional Path template argument

This commit is contained in:
mtkennerly 2023-12-09 15:12:14 +08:00
parent 716a2a1dfe
commit f9fd72e887
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 18 additions and 4 deletions

View file

@ -39809,7 +39809,7 @@ Aspects of change:
id: 1815780 id: 1815780
Asphalt Xtreme: Asphalt Xtreme:
files: files:
/WindowsApps/A278AB0D.AsphaltXtreme_1.7.3.8_x86__h6adky7gbf63m: "C:/Program Files/WindowsApps/A278AB0D.AsphaltXtreme_1.7.3.8_x86__h6adky7gbf63m":
tags: tags:
- config - config
when: when:
@ -194905,7 +194905,7 @@ Farming Simulator 15:
id: 313160 id: 313160
Farming Simulator 16: Farming Simulator 16:
files: files:
/WindowsApps/GIANTSSoftware.FarmingSimulator16_1.1.2.8_x86__fa8jxm5fj0esw: "C:/Program Files/WindowsApps/GIANTSSoftware.FarmingSimulator16_1.1.2.8_x86__fa8jxm5fj0esw":
tags: tags:
- save - save
when: when:
@ -336238,7 +336238,7 @@ MetalArms:
id: 1155860 id: 1155860
"Metalheart: Replicants Rampage": "Metalheart: Replicants Rampage":
files: files:
/NumLock/Metalheart/data/save: "C:/Program Files/NumLock/Metalheart/data/save":
tags: tags:
- save - save
when: when:
@ -555605,7 +555605,7 @@ The Lift:
id: 843160 id: 843160
The Light Brigade: The Light Brigade:
files: files:
/Steam/steamapps/common/The Light Brigade/saves: "C:/Program Files/Steam/steamapps/common/The Light Brigade/saves":
tags: tags:
- save - save
when: when:

View file

@ -741,8 +741,10 @@ pub fn flatten_path(attribute: &Attribute) -> WikiPath {
out out
} }
/// https://www.pcgamingwiki.com/wiki/Template:Path
static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| { static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
HashMap::from_iter([ HashMap::from_iter([
// General
( (
"game", "game",
MappedPath { MappedPath {
@ -781,6 +783,7 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
..Default::default() ..Default::default()
}, },
), ),
// Windows registry
( (
"hkcu", "hkcu",
MappedPath { MappedPath {
@ -808,6 +811,7 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
..Default::default() ..Default::default()
}, },
), ),
// Windows filesystem
( (
"username", "username",
MappedPath { MappedPath {
@ -880,6 +884,14 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
..Default::default() ..Default::default()
}, },
), ),
(
"programfiles",
MappedPath {
manifest: "C:/Program Files",
os: Some(Os::Windows),
..Default::default()
},
),
( (
"windir", "windir",
MappedPath { MappedPath {
@ -896,6 +908,7 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
..Default::default() ..Default::default()
}, },
), ),
// Mac
( (
"osxhome", "osxhome",
MappedPath { MappedPath {
@ -904,6 +917,7 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
..Default::default() ..Default::default()
}, },
), ),
// Linux
( (
"linuxhome", "linuxhome",
MappedPath { MappedPath {