diff --git a/data/manifest.yaml b/data/manifest.yaml index c19f5300..942724d3 100644 --- a/data/manifest.yaml +++ b/data/manifest.yaml @@ -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: diff --git a/src/wiki.rs b/src/wiki.rs index 13d9649b..b8d26f5b 100644 --- a/src/wiki.rs +++ b/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> = Lazy::new(|| { HashMap::from_iter([ + // General ( "game", MappedPath { @@ -781,6 +783,7 @@ static MAPPED_PATHS: Lazy> = Lazy::new(|| { ..Default::default() }, ), + // Windows registry ( "hkcu", MappedPath { @@ -808,6 +811,7 @@ static MAPPED_PATHS: Lazy> = Lazy::new(|| { ..Default::default() }, ), + // Windows filesystem ( "username", MappedPath { @@ -880,6 +884,14 @@ static MAPPED_PATHS: Lazy> = 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> = Lazy::new(|| { ..Default::default() }, ), + // Mac ( "osxhome", MappedPath { @@ -904,6 +917,7 @@ static MAPPED_PATHS: Lazy> = Lazy::new(|| { ..Default::default() }, ), + // Linux ( "linuxhome", MappedPath {