Mark some Mac paths as too broad and normalize paths ending with *

This commit is contained in:
mtkennerly 2022-08-19 23:48:30 +08:00
parent 92fcbe1f1d
commit faf32b040a
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 86 additions and 100 deletions

View file

@ -5613,11 +5613,6 @@ $1 Ride:
- save
when:
- os: mac
<home>/Library/Preferences/*:
tags:
- config
when:
- os: mac
installDir:
911 Operator: {}
launch:
@ -10802,7 +10797,7 @@ ATOM RPG Trudograd:
id: 1139940
ATRI -My Dear Moments-:
files:
<root>/userdata/<storeUserId>/1230140/remote/*:
<root>/userdata/<storeUserId>/1230140/remote:
tags:
- save
when:
@ -13673,7 +13668,7 @@ AdVenture Communist:
id: 462930
Adabana Odd Tales:
files:
<base>/save/*:
<base>/save:
tags:
- save
when:
@ -29458,7 +29453,7 @@ Another Dawn:
id: 1078670
Another Eden:
files:
<winLocalAppData>/AnotherEden/*:
<winLocalAppData>/AnotherEden:
tags:
- config
when:
@ -60106,7 +60101,7 @@ BladeShield:
id: 554470
Bladed Fury:
files:
<home>/AppData/LocalLow/NEXT Studios/Bladed Fury/savedata/*:
<home>/AppData/LocalLow/NEXT Studios/Bladed Fury/savedata:
tags:
- save
when:
@ -73028,7 +73023,7 @@ Buddy Simulator 1984:
id: 1269950
Budget Cuts:
files:
<home>/AppData/LocalLow/Neat Corporation/Budget Cuts/*:
<home>/AppData/LocalLow/Neat Corporation/Budget Cuts:
tags:
- save
when:
@ -73038,7 +73033,7 @@ Budget Cuts:
- config
when:
- os: windows
<winDocuments>/Budget Cuts Save Data/*:
<winDocuments>/Budget Cuts Save Data:
tags:
- save
when:
@ -81976,10 +81971,10 @@ Castle Explorer (2017):
id: 531780
Castle Fantasia:
registry:
HKEY_CURRENT_USER/Software/Ego!/CastleFantasia/Main/*:
HKEY_CURRENT_USER/Software/Ego!/CastleFantasia/Main:
tags:
- config
HKEY_CURRENT_USER/Software/Ego!/CastleFantasia/Save/*:
HKEY_CURRENT_USER/Software/Ego!/CastleFantasia/Save:
tags:
- save
Castle Flipper:
@ -84043,11 +84038,6 @@ Cave Story+:
- save
when:
- os: linux
<home>/Library/Application Support:
tags:
- config
when:
- os: mac
<home>/Library/Application Support/Profile.dat:
tags:
- save
@ -102821,7 +102811,7 @@ Cook-Out:
id: 1523720
Cookie Clicker:
files:
<root>/userdata/<storeUserId>/1454400/*:
<root>/userdata/<storeUserId>/1454400:
tags:
- save
when:
@ -116933,7 +116923,7 @@ Dandy & Randy:
id: 959130
Dandy Ace:
files:
<base>/SaveData/*:
<base>/SaveData:
tags:
- save
when:
@ -125939,7 +125929,7 @@ Death to Spies:
id: 9800
'Death to Spies: Moment of Truth':
files:
<winDocuments>/My Games/Smersh_MT/Profiles/*:
<winDocuments>/My Games/Smersh_MT/Profiles:
tags:
- save
when:
@ -141627,7 +141617,7 @@ Doodle Farm:
id: 947390
Doodle God:
files:
<base>/temp/*:
<base>/temp:
tags:
- save
when:
@ -146332,7 +146322,7 @@ DreadEye VR:
id: 692930
DreadOut:
files:
<base>/cloud/<storeUserId>/*:
<base>/cloud/<storeUserId>:
tags:
- save
when:
@ -153627,7 +153617,7 @@ Dynasty Warriors 7 with Xtreme Legends:
- os: windows
store: steam
registry:
HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 7 DX/*:
HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 7 DX:
tags:
- config
steam:
@ -153656,7 +153646,7 @@ Dynasty Warriors 7 with Xtreme Legends:
- os: windows
store: steam
registry:
HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 8 Empires/*:
HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 8 Empires:
tags:
- config
steam:
@ -153702,7 +153692,7 @@ Dynasty Warriors 9:
os: windows
store: steam
registry:
HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 9 for Steam/*:
HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 9 for Steam:
tags:
- config
steam:
@ -153728,7 +153718,7 @@ Dynasty Warriors 9:
os: windows
store: steam
registry:
HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 9 Empires for Steam /*:
'HKEY_CURRENT_USER/Software/KoeiTecmo/Dynasty Warriors 9 Empires for Steam ':
tags:
- config
steam:
@ -159549,7 +159539,7 @@ Eliosi's Hunt:
id: 576400
Elise the Devil:
files:
<base>/www/save/*:
<base>/www/save:
tags:
- save
when:
@ -174991,7 +174981,7 @@ Fallalypse:
id: 689520
Fallback:
files:
<base>/fallback_Data/Save/*:
<base>/fallback_Data/Save:
tags:
- save
when:
@ -206899,17 +206889,17 @@ Goat Life:
id: 860440
Goat Simulator:
files:
<base>/Engine/Config/*:
<base>/Engine/Config:
tags:
- config
when:
- os: windows
<home>/.steam/steam/steamapps/common/GoatSimulator/GoatGame/Config/*:
<home>/.steam/steam/steamapps/common/GoatSimulator/GoatGame/Config:
tags:
- config
when:
- os: linux
<home>/Library/Application Support/Steam/steamapps/common/GoatSimulator/GoatSimulator.app/Contents/Resources/GoatGame/Config/*:
<home>/Library/Application Support/Steam/steamapps/common/GoatSimulator/GoatSimulator.app/Contents/Resources/GoatGame/Config:
tags:
- config
when:
@ -206919,7 +206909,7 @@ Goat Simulator:
- save
when:
- store: steam
<winDocuments>/My Games/GoatSim/GoatGame/Config/*:
<winDocuments>/My Games/GoatSim/GoatGame/Config:
tags:
- config
when:
@ -226577,7 +226567,7 @@ HenTris:
id: 880260
Henchman Story:
files:
<base>/game/saves/*:
<base>/game/saves:
tags:
- save
when:
@ -226968,7 +226958,7 @@ Hentai Forest:
id: 946550
Hentai Girl:
files:
<base>/HentaiGirl_Data/Save/*:
<base>/HentaiGirl_Data/Save:
tags:
- save
when:
@ -227012,7 +227002,7 @@ Hentai Girl Division:
id: 1113680
Hentai Girl Fantasy:
files:
<base>/HentaiGirl_Data/Save/*:
<base>/HentaiGirl_Data/Save:
tags:
- save
when:
@ -227032,7 +227022,7 @@ Hentai Girl Fantasy:
id: 1146950
Hentai Girl Karen:
files:
<base>/HentaiGirlKaren_Data/Save/*:
<base>/HentaiGirlKaren_Data/Save:
tags:
- save
when:
@ -227052,7 +227042,7 @@ Hentai Girl Karen:
id: 1004240
Hentai Girl Linda:
files:
<base>/HentaiGirlLinda_Data/Save/*:
<base>/HentaiGirlLinda_Data/Save:
tags:
- save
when:
@ -275664,7 +275654,7 @@ Legend of Hand:
id: 595560
Legend of Himari:
files:
<winLocalAppData>/Legend_of_Himari/*:
<winLocalAppData>/Legend_of_Himari:
tags:
- save
when:
@ -286874,7 +286864,7 @@ Love Engine:
id: 574170
Love Esquire:
files:
<home>/AppData/LocalLow/Yangyang Mobile/Love Esquire/State/*:
<home>/AppData/LocalLow/Yangyang Mobile/Love Esquire/State:
tags:
- save
when:
@ -287153,7 +287143,7 @@ Love Thyself - A Horatio Story:
id: 884320
Love Wish:
files:
<home>/AppData/LocalLow/wangyibo/lovewishs/data/*:
<home>/AppData/LocalLow/wangyibo/lovewishs/data:
tags:
- save
when:
@ -299371,7 +299361,7 @@ Master Cube:
id: 1081350
Master Magistrate:
files:
<base>/savedata/*:
<base>/savedata:
tags:
- save
when:
@ -299980,7 +299970,7 @@ MatchyGotchy Z:
id: 888220
Material Girl:
files:
<base>/www/save/*:
<base>/www/save:
tags:
- save
when:
@ -306102,7 +306092,7 @@ Metro Exodus:
- save
when:
- store: gog
<home>/Library/Application Support/MetroExodus/*:
<home>/Library/Application Support/MetroExodus:
tags:
- save
when:
@ -306488,15 +306478,11 @@ Mevo and The Grooveriders:
MewnBase:
files:
<base>/saves:
tags:
- save
when:
- os: linux
<base>/saves/*:
tags:
- save
when:
- os: windows
- os: linux
<base>/settings.json:
tags:
- config
@ -320839,7 +320825,7 @@ Mutant Ops:
- config
when:
- os: windows
<winLocalAppData>/VGDFinal/Saved/SaveGames/*:
<winLocalAppData>/VGDFinal/Saved/SaveGames:
tags:
- save
when:
@ -324409,7 +324395,7 @@ NAL is Alive:
id: 485430
NALOGI:
files:
<base>/www/save/*:
<base>/www/save:
tags:
- save
when:
@ -326877,27 +326863,27 @@ Narcissu:
id: 264380
Narcissu 10th Anniversary Anthology Project:
files:
<base>/narci_himeko/savedata/*:
<base>/narci_himeko/savedata:
tags:
- save
when:
- os: windows
<base>/narci_iris/savedata/*:
<base>/narci_iris/savedata:
tags:
- save
when:
- os: windows
<base>/narci_onetwo/savedata/*:
<base>/narci_onetwo/savedata:
tags:
- save
when:
- os: windows
<base>/narci_sumire/savedata/*:
<base>/narci_sumire/savedata:
tags:
- save
when:
- os: windows
<base>/narci_zero/savedata/*:
<base>/narci_zero/savedata:
tags:
- save
when:
@ -328065,7 +328051,7 @@ Nebulous:
id: 370140
Necesse:
files:
<winAppData>/Necesse/saves/*:
<winAppData>/Necesse/saves:
tags:
- save
when:
@ -328599,7 +328585,7 @@ Need for Speed Rivals:
when:
- os: windows
registry:
HKEY_LOCAL_MACHINE/Software/WOW6432Node/Electronic Arts/Need for Speed Carbon/*:
HKEY_LOCAL_MACHINE/Software/WOW6432Node/Electronic Arts/Need for Speed Carbon:
tags:
- config
'Need for Speed: High Stakes':
@ -328779,7 +328765,7 @@ Need for Speed Rivals:
when:
- os: windows
registry:
HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/EA GAMES/Need For Speed Underground/*:
HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/EA GAMES/Need For Speed Underground:
tags:
- config
'Need for Speed: Underground 2':
@ -334071,7 +334057,7 @@ Nights of Azure:
- os: windows
store: steam
registry:
HKEY_CURRENT_USER/Software/KoeiTecmo/Nights of Azure/Settings/*:
HKEY_CURRENT_USER/Software/KoeiTecmo/Nights of Azure/Settings:
tags:
- config
steam:
@ -352738,7 +352724,7 @@ Pagans Must Die:
id: 1024720
'Pahelika: Revelations HD':
files:
<winAppData>/IronCode/PahelikaRv/*:
<winAppData>/IronCode/PahelikaRv:
tags:
- save
when:
@ -372249,7 +372235,7 @@ Pretentious Game:
id: 279540
Pretty Angel:
files:
<base>/PrettyAngel_Data/Save/*:
<base>/PrettyAngel_Data/Save:
tags:
- save
when:
@ -386912,7 +386898,7 @@ Rain's love memory-雨的恋记:
id: 1058000
'Rainbow Billy: The Curse of the Leviathan':
files:
<home>/AppData/LocalLow/Manavoid/RainbowBilly/SaveFiles/*:
<home>/AppData/LocalLow/Manavoid/RainbowBilly/SaveFiles:
tags:
- save
when:
@ -389018,12 +389004,12 @@ Re Painter:
id: 1096420
Re-Legion:
files:
<home>/AppData/LocalLow/Ice Code Games/Re-Legion/Elion Saves/*:
<home>/AppData/LocalLow/Ice Code Games/Re-Legion/Elion Saves:
tags:
- save
when:
- os: windows
<home>/AppData/LocalLow/Ice Code Games/Re-Legion/save screens/*:
<home>/AppData/LocalLow/Ice Code Games/Re-Legion/save screens:
tags:
- save
when:
@ -404454,7 +404440,7 @@ Rogue Legacy 2:
- save
when:
- os: windows
<home>/AppData/LocalLow/Cellar Door Games/Rogue Legacy 2/Saves/Steam/<storeUserId>/*:
<home>/AppData/LocalLow/Cellar Door Games/Rogue Legacy 2/Saves/Steam/<storeUserId>:
tags:
- save
when:
@ -412929,7 +412915,7 @@ Sairento VR:
- config
when:
- os: windows
<base>/dataWin/Savedata/*:
<base>/dataWin/Savedata:
tags:
- save
when:
@ -417343,7 +417329,7 @@ School of Intellectual Gamers:
id: 1130760
'School of Talent: Suzu-Route':
files:
<home>/AppData/LocalLow/MyDearest/School_of_Talent_SUZU-ROUTE/Utage/SaveSchool_of_Talent_SUZU-ROUTE/*:
<home>/AppData/LocalLow/MyDearest/School_of_Talent_SUZU-ROUTE/Utage/SaveSchool_of_Talent_SUZU-ROUTE:
tags:
- save
when:
@ -425045,17 +425031,17 @@ Shan Gui:
id: 307050
'Shan Gui II: Sweet Osmanthus II':
files:
<base>/ShanGuiDE/game/saves/*:
<base>/ShanGuiDE/game/saves:
tags:
- save
when:
- os: windows
<home>/AppData/LocalLow/MagentaFactory/ShanGui2/Utage/Saveshangui2/*:
<home>/AppData/LocalLow/MagentaFactory/ShanGui2/Utage/Saveshangui2:
tags:
- save
when:
- os: windows
<home>/AppData/LocalLow/MagentaFactory/ShanGui22/Utage/Saveshangui2/*:
<home>/AppData/LocalLow/MagentaFactory/ShanGui22/Utage/Saveshangui2:
tags:
- save
when:
@ -455903,7 +455889,7 @@ Star Wars Galaxies:
- when:
- store: steam
registry:
HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/SOFTWARE/lucasarts entertainment company llc/star wars starfighter/1.0/*:
HKEY_LOCAL_MACHINE/SOFTWARE/WOW6432Node/SOFTWARE/lucasarts entertainment company llc/star wars starfighter/1.0:
tags:
- config
steam:
@ -465328,11 +465314,6 @@ Sub Chase Online:
id: 1077360
Sub Command:
files:
<base>/*:
tags:
- save
when:
- os: windows
<base>/scenario/*.mcs:
tags:
- save
@ -466072,7 +466053,7 @@ Succubus Affection:
id: 1328890
Succubus Rem:
files:
<base>/www/save/*:
<base>/www/save:
tags:
- save
when:
@ -485618,7 +485599,7 @@ Teslagrad:
- save
when:
- os: linux
<home>/AppData/LocalLow/Rain/Teslagrad/*:
<home>/AppData/LocalLow/Rain/Teslagrad:
tags:
- save
when:
@ -485638,7 +485619,7 @@ Teslagrad:
- save
when:
- os: mac
<root>/userdata/<storeUserId>/249590/remote/*:
<root>/userdata/<storeUserId>/249590/remote:
tags:
- save
when:
@ -488952,7 +488933,7 @@ The Battle for Wesnoth:
- save
when:
- os: windows
<xdgData>/wesnoth/*:
<xdgData>/wesnoth:
tags:
- save
when:
@ -496621,7 +496602,7 @@ The Floor is Jelly:
- save
when:
- os: windows
<winAppData>/jelly/Local Store/*:
<winAppData>/jelly/Local Store:
tags:
- save
when:
@ -501331,7 +501312,7 @@ The King of Fighters 2002 Unlimited Match:
id: 222440
The King of Fighters All Star:
registry:
HKEY_CURRENT_USER/Software/Netmarble Corp./KOF ALLSTAR/*:
HKEY_CURRENT_USER/Software/Netmarble Corp./KOF ALLSTAR:
tags:
- config
The King of Fighters XIII:
@ -503681,7 +503662,7 @@ The Leopard Catgirl in Miaoli:
id: 1149510
The Letter:
files:
<home>/AppData/LocalLow/Yangyang Mobile/The Letter/State/*:
<home>/AppData/LocalLow/Yangyang Mobile/The Letter/State:
tags:
- save
when:
@ -528872,7 +528853,7 @@ Touken Ranbu Warriors:
- when:
- store: steam
registry:
HKEY_CURRENT_USER/Software/dmmgames_KOEITECMO/Touken Ranbu Warriors/Graphic Setting/*:
HKEY_CURRENT_USER/Software/dmmgames_KOEITECMO/Touken Ranbu Warriors/Graphic Setting:
tags:
- config
steam:
@ -529749,7 +529730,7 @@ Townsmen:
id: 486540
Townsmen - A Kingdom Rebuilt:
files:
<winLocalAppData>/HandyGames/com.hg.townsmen.rebuilt/savegames/*:
<winLocalAppData>/HandyGames/com.hg.townsmen.rebuilt/savegames:
tags:
- save
when:
@ -533851,7 +533832,7 @@ Tricky Towers:
id: 437920
Tricolour Lovestory:
files:
<base>/savedata/*:
<base>/savedata:
tags:
- save
when:
@ -542736,7 +542717,7 @@ Unexpected Sequence:
id: 1199110
Unexplored:
files:
<home>/Library/Application Support/Unexplored/save/*:
<home>/Library/Application Support/Unexplored/save:
tags:
- save
when:
@ -542756,7 +542737,7 @@ Unexplored:
- config
when:
- os: windows
<xdgData>/Unexplored/save/*:
<xdgData>/Unexplored/save:
tags:
- save
when:
@ -559963,7 +559944,7 @@ Warriors Orochi 3 Ultimate Definitive Edition:
os: windows
store: steam
registry:
HKEY_CURRENT_USER/Software/KoeiTecmo/WARRIORS OROCHI 3 Ultimate/*:
HKEY_CURRENT_USER/Software/KoeiTecmo/WARRIORS OROCHI 3 Ultimate:
tags:
- config
steam:
@ -566399,7 +566380,7 @@ Wildcat Gun Machine:
id: 1288610
Wildermyth:
files:
<base>/players/*:
<base>/players:
tags:
- save
when:
@ -573365,7 +573346,7 @@ Wuppo:
- config
when:
- os: windows
<winLocalAppData>/Wuppo/savedata/*:
<winLocalAppData>/Wuppo/savedata:
tags:
- save
when:

View file

@ -314,14 +314,17 @@ function parsePath(path: string): [string, PathType] {
}
}
return [
path
.replace(/\\/g, "/")
.replace(/\/{2,}/g, "/")
.replace(/\/(?=$)/g, "")
.replace(/^~(?=($|\/))/, "<home>"),
pathType,
];
path = path
.replace(/\\/g, "/")
.replace(/\/{2,}/g, "/")
.replace(/\/(?=$)/g, "")
.replace(/^~(?=($|\/))/, "<home>");
while (path.endsWith("/*")) {
path = path.slice(0, path.length - 2);
}
return [path, pathType];
}
export function pathIsTooBroad(path: string): boolean {
@ -343,6 +346,8 @@ export function pathIsTooBroad(path: string): boolean {
"<home>/AppData/Roaming",
"<home>/Documents/My Games",
"<winDocuments>/My Games",
"<home>/Library/Application Support",
"<home>/Library/Preferences",
].includes(path)) {
return true;
}