Translate Windows %-style variables

This commit is contained in:
mtkennerly 2022-09-18 06:40:02 +08:00
parent e25062de36
commit 202879f7d3
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 112 additions and 118 deletions

View file

@ -20903,12 +20903,12 @@ Alice Must Find the Key to Escape:
id: 816030
Alice Mystery Garden:
files:
'%LOCALAPPDATA%/AliceMysteryGarden/Saved/Config/WindowsNoEditor':
<winLocalAppData>/AliceMysteryGarden/Saved/Config/WindowsNoEditor:
tags:
- config
when:
- os: windows
'%LOCALAPPDATA%/AliceMysteryGarden/Saved/SaveGames':
<winLocalAppData>/AliceMysteryGarden/Saved/SaveGames:
tags:
- save
when:
@ -23977,7 +23977,7 @@ Alvarok:
id: 729270
Alvastia Chronicles:
files:
'%LOCALAPPDATA%/Packages/KEMCO.AlvastiaChronicles_f2bp5vqmgh7cp/SystemAppData/wgs/0009E7027027425A_0000000000000000000000006216911F':
<winLocalAppData>/Packages/KEMCO.AlvastiaChronicles_f2bp5vqmgh7cp/SystemAppData/wgs/0009E7027027425A_0000000000000000000000006216911F:
tags:
- config
- save
@ -30876,7 +30876,7 @@ Apez:
id: 683210
Apico:
files:
'%USERPROFILE%/AppData/Local/APICO':
<winLocalAppData>/APICO:
tags:
- config
- save
@ -45557,12 +45557,12 @@ Bakery Biz Tycoon:
id: 1101780
Bakery Simulator:
files:
'%USERPROFILE%/AppData/Local/BakerySimulatorFull/Saved/Config':
<winLocalAppData>/BakerySimulatorFull/Saved/Config:
tags:
- config
when:
- os: windows
'%USERPROFILE%/AppData/Local/BakerySimulatorFull/Saved/SaveGames':
<winLocalAppData>/BakerySimulatorFull/Saved/SaveGames:
tags:
- save
when:
@ -63025,7 +63025,7 @@ Blood Brothers:
id: 1069940
Blood Card:
files:
'%userprofile%/AppData/LocalLow/PixelCattleGames/BloodCard':
<home>/AppData/LocalLow/PixelCattleGames/BloodCard:
tags:
- config
- save
@ -65358,7 +65358,7 @@ Bocce VR:
id: 1099010
Bode Miller Alpine Skiing:
files:
'%LOCALAPPDATA%/VirtualStore/Program Files (x86)/Ski Alpin 2006':
<winLocalAppData>/VirtualStore/Program Files (x86)/Ski Alpin 2006:
tags:
- save
when:
@ -74156,12 +74156,12 @@ Bullyparade - DER Spiel:
id: 656780
Bum Simulator:
files:
'%LOCALAPPDATA%/BumSim/Saved/Config':
<winLocalAppData>/BumSim/Saved/Config:
tags:
- config
when:
- os: windows
'%LOCALAPPDATA%/BumSim/Saved/SaveGames':
<winLocalAppData>/BumSim/Saved/SaveGames:
tags:
- save
when:
@ -83749,7 +83749,7 @@ Catlateral Damage:
id: 329860
Catmaze:
files:
'%LOCALAPPDATA%/Catmaze/User Data':
<winLocalAppData>/Catmaze/User Data:
tags:
- config
when:
@ -101155,12 +101155,12 @@ Concept Destruction:
id: 458730
'Conception PLUS: Maidens of the Twelve Stars':
files:
'%USERPROFILE%/Documents/My Games/ConceptionPlus':
<winDocuments>/My Games/ConceptionPlus:
tags:
- config
when:
- os: windows
'%USERPROFILE%/Documents/My Games/ConceptionPlus/Saves':
<winDocuments>/My Games/ConceptionPlus/Saves:
tags:
- save
when:
@ -111506,7 +111506,7 @@ Crystal Reign:
id: 662780
Crystal Rift:
files:
'%userprofile%/appdata/LocalLow/Psytec Games Ltd/Crystal Rift/SaveGames/CrystalRift':
<home>/appdata/LocalLow/Psytec Games Ltd/Crystal Rift/SaveGames/CrystalRift:
tags:
- save
when:
@ -113004,7 +113004,7 @@ Cuckold Simulator:
id: 1196460
'Cuckold Simulator: Life as a Beta Male Cuck':
files:
'%LOCALAPPDATA%/LocalLow/Team SNEED/CuckoldSimulator':
<winLocalAppData>/LocalLow/Team SNEED/CuckoldSimulator:
tags:
- config
- save
@ -123399,7 +123399,7 @@ Dead Line:
id: 740070
Dead Man's Draw:
files:
'%LOCALAPPDATA%/deadmansdraw/savedata.json':
<winLocalAppData>/deadmansdraw/savedata.json:
tags:
- save
when:
@ -130723,14 +130723,10 @@ Demon's Tilt:
id: 1117110
DemonCrawl:
files:
'%Userprofile%/Appdata/Local/DemonCrawl':
tags:
- save
when:
- os: windows
<winLocalAppData>/DemonCrawl:
tags:
- config
- save
when:
- os: windows
installDir:
@ -130832,7 +130828,7 @@ Demonizer:
- save
when:
- os: linux
'%APPDATA%/Demonizer':
<winAppData>/Demonizer:
tags:
- config
- save
@ -135515,12 +135511,12 @@ Diehard Dungeon:
id: 277870
'Dies Irae: Amantes Amentes':
files:
'%APPDATA%/light/Dies irae `Amantes amentes`':
'%USERPROFILE/Documents/My Games/light/Dies irae `Amantes amentes`':
tags:
- save
when:
- os: windows
'%USERPROFILE/Documents/My Games/light/Dies irae `Amantes amentes`':
<winAppData>/light/Dies irae `Amantes amentes`:
tags:
- save
when:
@ -152549,7 +152545,7 @@ Dungeons 2:
- save
when:
- os: linux
"<base>/savegames/ \nor \n%AppData%/Kalypso Media/Dungeons 2/savegames":
"<base>/savegames/ \nor \n<winAppData>/Kalypso Media/Dungeons 2/savegames":
tags:
- save
when:
@ -154348,7 +154344,7 @@ Dyscourse:
id: 337890
Dysmantle:
files:
'%userprofile%/AppData/Roaming/10tons/DYSMANTLE/save':
<winAppData>/10tons/DYSMANTLE/save:
tags:
- save
when:
@ -168810,7 +168806,7 @@ Evergarden:
id: 576500
Evergate:
files:
'%USERPROFILE%/AppData/LocalLow/StoneLantern/Evergate':
<home>/AppData/LocalLow/StoneLantern/Evergate:
tags:
- save
when:
@ -174783,7 +174779,7 @@ Fairtravel Battle:
id: 917820
Fairune Collection:
files:
'%appdata%/../LocalLow/Flyhigh Works/Fairune Collection':
<winAppData>/../LocalLow/Flyhigh Works/Fairune Collection:
tags:
- config
- save
@ -180482,7 +180478,7 @@ Fermi's Path:
id: 342650
Fernbus Simulator:
files:
'%LOCALAPPDATA%/Fernbus/Saved':
<winLocalAppData>/Fernbus/Saved:
tags:
- save
when:
@ -190610,7 +190606,7 @@ Fort Meow:
id: 1041940
Fort Triumph:
files:
'%userprofile%/appdata/locallow/Cookie Byte Entertainment/Fort Triumph':
<home>/appdata/locallow/Cookie Byte Entertainment/Fort Triumph:
tags:
- save
when:
@ -192691,7 +192687,7 @@ Freddy Fazbear's Pizzeria Simulator:
id: 738060
Freddy in Space 2:
files:
'%APPDATA%/MMFApplications/FIS2':
<winAppData>/MMFApplications/FIS2:
tags:
- save
when:
@ -193391,16 +193387,16 @@ Freemium Way:
id: 339610
Freeways:
files:
'%appdata%/CaptainGames/Freeways':
tags:
- save
when:
- os: windows
<home>/Library/Application Support/CaptainGames/Freeways:
tags:
- save
when:
- os: mac
<winAppData>/CaptainGames/Freeways:
tags:
- save
when:
- os: windows
installDir:
Freeways: {}
launch:
@ -194454,7 +194450,7 @@ Frontier - TRS:
id: 1429500
Frontier Pilot Simulator:
files:
'%APPDATA%/Razar/Frontier Pilot Simulator/Saves':
<winAppData>/Razar/Frontier Pilot Simulator/Saves:
tags:
- config
when:
@ -211061,7 +211057,7 @@ Grand Academy for Future Villains:
id: 310470
'Grand Ages: Rome':
files:
'%APPDATA%/Reign of Augustus/Saves':
<winAppData>/Reign of Augustus/Saves:
tags:
- save
when:
@ -226159,7 +226155,7 @@ Hell:
id: 312420
Hell Architect:
files:
'%USERPROFILE%/AppData/LocalLow/Woodland Games/HellArchitect':
<home>/AppData/LocalLow/Woodland Games/HellArchitect:
tags:
- config
- save
@ -236143,7 +236139,7 @@ Honey Comb Home:
id: 523680
'Honey, I Joined a Cult':
files:
'%LOCALAPPDATA%/Honey_I_Joined_A_Cult':
<winLocalAppData>/Honey_I_Joined_A_Cult:
tags:
- save
when:
@ -249568,7 +249564,7 @@ Infinity Wings - Scout & Grunt:
id: 448790
'Infinity: Battlescape':
files:
'%USERPROFILE%/Documents/I-Novae Studios/Infinity Battlescape':
<winDocuments>/I-Novae Studios/Infinity Battlescape:
tags:
- config
when:
@ -252246,12 +252242,12 @@ Intrusion Protocol:
id: 659040
'Inua: A Story in Ice and Time':
files:
'%USERPROFILE%/AppData/LocalLow/ARTE France Apps/Inua/SaveFile.json':
<home>/AppData/LocalLow/ARTE France Apps/Inua/SaveFile.json:
tags:
- save
when:
- os: windows
'%USERPROFILE%/AppData/LocalLow/ARTE France Apps/Inua/Settings.json':
<home>/AppData/LocalLow/ARTE France Apps/Inua/Settings.json:
tags:
- config
when:
@ -257288,7 +257284,7 @@ Jet Island:
id: 587220
Jet Kave Adventure:
files:
'x:/Users/%USERPROFILE%/AppData/LocalLow/7Levels/Jet Kave Adventure':
'x:/Users/<home>/AppData/LocalLow/7Levels/Jet Kave Adventure':
tags:
- save
when:
@ -284041,7 +284037,7 @@ Loading:
id: 694970
'Loading Human: Chapter 1':
files:
'%userprofile%/AppData/Local/LHChapterOne/Saved':
<winLocalAppData>/LHChapterOne/Saved:
tags:
- save
when:
@ -287330,14 +287326,10 @@ Lost in Purple:
id: 688600
Lost in Random:
files:
'%USERPROFILE%/AppData/LocalLow/Zoink Games/Lost In Random':
tags:
- save
when:
- os: windows
<home>/AppData/LocalLow/Zoink Games/Lost In Random:
tags:
- config
- save
when:
- os: windows
installDir:
@ -288258,13 +288250,9 @@ Love the game:
id: 1200990
Love's Sweet Garnish:
files:
'%APPDATA%/CANVAS+GARDEN/koiama_ml':
tags:
- config
when:
- os: windows
<winAppData>/CANVAS+GARDEN/koiama_ml:
tags:
- config
- save
when:
- os: windows
@ -302363,12 +302351,12 @@ Mech Mechanic Simulator:
id: 1044980
Mech Merc Company:
files:
'%USERPROFILE%/AppData/LocalLow/MichaelShoots/MechMercCompany/Careers':
<home>/AppData/LocalLow/MichaelShoots/MechMercCompany/Careers:
tags:
- save
when:
- os: windows
'%USERPROFILE%/AppData/LocalLow/MichaelShoots/MechMercCompany/Configs':
<home>/AppData/LocalLow/MichaelShoots/MechMercCompany/Configs:
tags:
- config
when:
@ -326776,16 +326764,6 @@ Nadia Was Here:
id: 436070
Naev:
files:
'%APPDATA%/naev':
tags:
- config
when:
- os: windows
'%APPDATA%/naev/saves':
tags:
- save
when:
- os: windows
<home>/.local/share/naev:
tags:
- config
@ -326796,6 +326774,16 @@ Naev:
- save
when:
- os: linux
<winAppData>/naev:
tags:
- config
when:
- os: windows
<winAppData>/naev/saves:
tags:
- save
when:
- os: windows
installDir:
Naev: {}
launch:
@ -343621,12 +343609,12 @@ OlliOlli:
id: 274250
OlliOlli World:
files:
'%USERPROFILE%/AppData/LocalLow/Roll7/OlliOlli World/OlliOlli World.dat':
<home>/AppData/LocalLow/Roll7/OlliOlli World/OlliOlli World.dat:
tags:
- config
when:
- os: windows
'%USERPROFILE%/AppData/LocalLow/Roll7/OlliOlli World/Save.Mount':
<home>/AppData/LocalLow/Roll7/OlliOlli World/Save.Mount:
tags:
- save
when:
@ -343736,7 +343724,7 @@ Olson's Boxing Challenge:
id: 747790
Olympia Rising:
files:
'%LOCALAPPDATA%/OlympiaRising/Local Storage':
<winLocalAppData>/OlympiaRising/Local Storage:
tags:
- save
when:
@ -346492,7 +346480,7 @@ Onyx:
id: 370620
Ooblets:
files:
'%userprofile%/appdata/locallow/Glumberland/Ooblets/SaveData':
<home>/appdata/locallow/Glumberland/Ooblets/SaveData:
tags:
- config
when:
@ -356045,7 +356033,7 @@ Paradigm Shift:
id: 299820
Paradise:
files:
'%userprofile%/Documents/Paradise':
<winDocuments>/Paradise:
tags:
- config
- save
@ -403178,7 +403166,7 @@ Roadside Assistance Simulator:
id: 302440
Roadwarden:
files:
'%APPDATA%/RenPy/Roadwarden-Saves':
<winAppData>/RenPy/Roadwarden-Saves:
tags:
- save
when:
@ -433428,12 +433416,12 @@ Simulator Hipstera 2k17:
id: 699450
Simutrans:
files:
'%USERPROFILE%/Documents/Simutrans/save':
<winDocuments>/Simutrans/save:
tags:
- save
when:
- os: windows
'%USERPROFILE%/Documents/Simutrans/settings.xml':
<winDocuments>/Simutrans/settings.xml:
tags:
- config
when:
@ -443158,16 +443146,6 @@ Someone Cloned The President:
id: 1136820
Something Ate My Alien:
files:
'%USERPROFILE%/Documents/My Games/Something Ate My Alien/GameData':
tags:
- config
when:
- os: windows
'%USERPROFILE%/Documents/My Games/Something Ate My Alien/GameSaves':
tags:
- save
when:
- os: windows
<home>/.local/share/Something-Ate-My-Alien/GameData:
tags:
- config
@ -443188,6 +443166,16 @@ Something Ate My Alien:
- save
when:
- os: mac
<winDocuments>/My Games/Something Ate My Alien/GameData:
tags:
- config
when:
- os: windows
<winDocuments>/My Games/Something Ate My Alien/GameSaves:
tags:
- save
when:
- os: windows
installDir:
Something Ate My Alien: {}
launch:
@ -447925,7 +447913,7 @@ Space Pirates and Zombies 2:
id: 252470
Space Punks:
files:
'%LOCALAPPDATA%/K1/Saved/Config/WindowsNoEditor':
<winLocalAppData>/K1/Saved/Config/WindowsNoEditor:
tags:
- config
when:
@ -456000,7 +455988,7 @@ Star Singularity:
id: 808800
Star Sky:
files:
'%LOCALAPPDATA%/StarSky':
<winLocalAppData>/StarSky:
tags:
- config
- save
@ -456025,7 +456013,7 @@ Star Sky:
id: 407020
Star Sky 2:
files:
'%LOCALAPPDATA%/StarSky2':
<winLocalAppData>/StarSky2:
tags:
- config
- save
@ -458261,7 +458249,7 @@ Starcats:
id: 365850
'Starcom: Nexus':
files:
'%UserProfile%/AppData/LocalLow/Wx3 Labs, LLC/Starcom Nexus/saves':
'<home>/AppData/LocalLow/Wx3 Labs, LLC/Starcom Nexus/saves':
tags:
- save
when:
@ -489230,12 +489218,12 @@ The American Dream:
- os: windows
The Anacrusis:
files:
'%localappdata%/Anacrusis/Saved/Config/WindowsNoEditor':
<winLocalAppData>/Anacrusis/Saved/Config/WindowsNoEditor:
tags:
- config
when:
- os: windows
'%localappdata%/Packages/StrayBombayCompany.TheAnacrusisGamePreview_wshdcf4tacg46/LocalCache/Local/Anacrusis/Saved/Config/WinGDK':
<winLocalAppData>/Packages/StrayBombayCompany.TheAnacrusisGamePreview_wshdcf4tacg46/LocalCache/Local/Anacrusis/Saved/Config/WinGDK:
tags:
- config
when:
@ -490255,7 +490243,7 @@ The Bard's Tale (2005):
- os: dos
'The Bard''s Tale IV: Barrows Deep':
files:
'%LOCALAPPDATA%/Packages/181CBCCD.TheBardsTaleIV_9y3t8zad226mc/LocalCache/Local/BardsTale4DC/Saved/Config/WindowsNoEditor':
<winLocalAppData>/Packages/181CBCCD.TheBardsTaleIV_9y3t8zad226mc/LocalCache/Local/BardsTale4DC/Saved/Config/WindowsNoEditor:
tags:
- config
when:
@ -505803,7 +505791,7 @@ The Long Reach:
id: 584990
The Long Return:
files:
'%appdata%/../LocalLow/Max Nielsen/The Long Return':
<winAppData>/../LocalLow/Max Nielsen/The Long Return:
tags:
- save
when:
@ -522919,7 +522907,7 @@ Tick Tock Isle:
id: 790740
Tick's Tales:
files:
'%USERPROFILE%/.prefs/ticks-tales-saves':
<home>/.prefs/ticks-tales-saves:
tags:
- save
when:
@ -538563,7 +538551,7 @@ Turbo Golf Racing:
id: 1324350
Turbo Overkill:
files:
'%USERPROFILE%/AppData/LocalLow/Trigger Happy Interactive/Turbo Overkill/Saves':
<home>/AppData/LocalLow/Trigger Happy Interactive/Turbo Overkill/Saves:
tags:
- save
when:
@ -546389,7 +546377,7 @@ Unsung Kingdom:
id: 1344790
Unsung Story:
files:
'%appdata%/LocalLow/Little Orbit/Unsung Story':
<winAppData>/LocalLow/Little Orbit/Unsung Story:
tags:
- save
when:
@ -549521,21 +549509,21 @@ Valhalla Chronicles:
- os: windows
Valhalla Hills:
files:
'%localappdata%/ValhallaHills/Saved/Config':
tags:
- config
when:
- os: windows
'%localappdata%/ValhallaHills/Saved/SaveGames':
tags:
- save
when:
- os: windows
<home>/.config/Epic/ValhallaHills:
tags:
- save
when:
- os: linux
<winLocalAppData>/ValhallaHills/Saved/Config:
tags:
- config
when:
- os: windows
<winLocalAppData>/ValhallaHills/Saved/SaveGames:
tags:
- save
when:
- os: windows
installDir:
ValhallaHills: {}
launch:
@ -550268,7 +550256,7 @@ Vampire of the Sands:
id: 1279630
'Vampire: The Masquerade - Swansong':
files:
'%localappdata%/Vampire/Saved/Config/WindowsNoEditor':
<winLocalAppData>/Vampire/Saved/Config/WindowsNoEditor:
tags:
- config
when:
@ -560340,7 +560328,7 @@ Warhalla:
- os: windows
'Warhammer 40,000: Chaos Gate - Daemonhunters':
files:
'%USERPROFILE%/AppData/LocalLow/Complex Games Inc_/GreyKnights/SaveGames':
<home>/AppData/LocalLow/Complex Games Inc_/GreyKnights/SaveGames:
tags:
- save
when:
@ -565622,12 +565610,12 @@ Westwood Shadows:
id: 1122360
Westworld Awakening:
files:
'%appdata%/Local/LabEscape/Saved/Config':
<winAppData>/Local/LabEscape/Saved/Config:
tags:
- config
when:
- os: windows
'%appdata%/Local/LabEscape/Saved/SaveGames':
<winAppData>/Local/LabEscape/Saved/SaveGames:
tags:
- save
when:
@ -568548,7 +568536,7 @@ Will of the Gods:
id: 503960
Will to Live Online:
files:
'%LOCALAPPDATA%/WTL/Saved/Config/WindowsClient':
<winLocalAppData>/WTL/Saved/Config/WindowsClient:
tags:
- config
when:
@ -577107,7 +577095,7 @@ Xorple:
id: 800110
Xotic:
files:
'%userprofile%/Documents/Xotic':
<winDocuments>/Xotic:
tags:
- save
when:
@ -585953,16 +585941,16 @@ Zzzzz:
id: 1031920
'Смешарики: Параллельные миры':
files:
'%appdata%/Roaming/Смешарики - Параллельные миры/settings.sav':
tags:
- save
when:
- os: windows
<base>/config.info:
tags:
- config
when:
- os: windows
<winAppData>/Roaming/Смешарики - Параллельные миры/settings.sav:
tags:
- save
when:
- os: windows
Тридевятые земли(Свет или тьма):
installDir:
' Тридевятые земли(Свет или тьма)': {}

View file

@ -318,7 +318,13 @@ function parsePath(path: string): [string, PathType] {
.replace(/\\/g, "/")
.replace(/\/{2,}/g, "/")
.replace(/\/(?=$)/g, "")
.replace(/^~(?=($|\/))/, "<home>");
.replace(/^~(?=($|\/))/, "<home>")
.replace(/%userprofile%[/\\]AppData[/\\]Roaming/i, "<winAppData>")
.replace(/%userprofile%[/\\]AppData[/\\]Local(?!Low)/i, "<winLocalAppData>")
.replace(/%userprofile%[/\\]Documents/i, "<winDocuments>")
.replace(/%userprofile%/i, "<home>")
.replace(/%appdata%/i, "<winAppData>")
.replace(/%localappdata%/i, "<winLocalAppData>");
while (path.endsWith("/*")) {
path = path.slice(0, path.length - 2);