Map an additional Path template argument
This commit is contained in:
parent
716a2a1dfe
commit
f9fd72e887
2 changed files with 18 additions and 4 deletions
|
@ -39809,7 +39809,7 @@ Aspects of change:
|
|||
id: 1815780
|
||||
Asphalt Xtreme:
|
||||
files:
|
||||
/WindowsApps/A278AB0D.AsphaltXtreme_1.7.3.8_x86__h6adky7gbf63m:
|
||||
"C:/Program Files/WindowsApps/A278AB0D.AsphaltXtreme_1.7.3.8_x86__h6adky7gbf63m":
|
||||
tags:
|
||||
- config
|
||||
when:
|
||||
|
@ -194905,7 +194905,7 @@ Farming Simulator 15:
|
|||
id: 313160
|
||||
Farming Simulator 16:
|
||||
files:
|
||||
/WindowsApps/GIANTSSoftware.FarmingSimulator16_1.1.2.8_x86__fa8jxm5fj0esw:
|
||||
"C:/Program Files/WindowsApps/GIANTSSoftware.FarmingSimulator16_1.1.2.8_x86__fa8jxm5fj0esw":
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -336238,7 +336238,7 @@ MetalArms:
|
|||
id: 1155860
|
||||
"Metalheart: Replicants Rampage":
|
||||
files:
|
||||
/NumLock/Metalheart/data/save:
|
||||
"C:/Program Files/NumLock/Metalheart/data/save":
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
@ -555605,7 +555605,7 @@ The Lift:
|
|||
id: 843160
|
||||
The Light Brigade:
|
||||
files:
|
||||
/Steam/steamapps/common/The Light Brigade/saves:
|
||||
"C:/Program Files/Steam/steamapps/common/The Light Brigade/saves":
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
|
|
14
src/wiki.rs
14
src/wiki.rs
|
@ -741,8 +741,10 @@ pub fn flatten_path(attribute: &Attribute) -> WikiPath {
|
|||
out
|
||||
}
|
||||
|
||||
/// https://www.pcgamingwiki.com/wiki/Template:Path
|
||||
static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
|
||||
HashMap::from_iter([
|
||||
// General
|
||||
(
|
||||
"game",
|
||||
MappedPath {
|
||||
|
@ -781,6 +783,7 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
|
|||
..Default::default()
|
||||
},
|
||||
),
|
||||
// Windows registry
|
||||
(
|
||||
"hkcu",
|
||||
MappedPath {
|
||||
|
@ -808,6 +811,7 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
|
|||
..Default::default()
|
||||
},
|
||||
),
|
||||
// Windows filesystem
|
||||
(
|
||||
"username",
|
||||
MappedPath {
|
||||
|
@ -880,6 +884,14 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
|
|||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"programfiles",
|
||||
MappedPath {
|
||||
manifest: "C:/Program Files",
|
||||
os: Some(Os::Windows),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"windir",
|
||||
MappedPath {
|
||||
|
@ -896,6 +908,7 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
|
|||
..Default::default()
|
||||
},
|
||||
),
|
||||
// Mac
|
||||
(
|
||||
"osxhome",
|
||||
MappedPath {
|
||||
|
@ -904,6 +917,7 @@ static MAPPED_PATHS: Lazy<HashMap<&'static str, MappedPath>> = Lazy::new(|| {
|
|||
..Default::default()
|
||||
},
|
||||
),
|
||||
// Linux
|
||||
(
|
||||
"linuxhome",
|
||||
MappedPath {
|
||||
|
|
Reference in a new issue