Filter out more broad paths with wildcards

This commit is contained in:
mtkennerly 2024-04-22 10:35:21 -04:00
parent 665f623bbe
commit 6ffbd67b31
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
3 changed files with 8 additions and 61 deletions

View file

@ -111625,10 +111625,6 @@ Christmas Crisis:
steam:
id: 961260
Christmas Defence:
files:
"<base>/<storeUserId>/*.ini":
when:
- store: steam
installDir:
Christmas Defence: {}
launch:
@ -135752,10 +135748,6 @@ Crossroad:
when:
- os: linux
store: steam
"<home>/Library/RenPy/**/*.save":
when:
- os: mac
store: steam
"<winAppData>/RenPy/CrossRoad_Lumi-1508689268/*.save":
when:
- os: windows
@ -196777,11 +196769,6 @@ ElectricScribe:
steam:
id: 661810
ElectricVLab:
files:
"<home>/Saved Games/**/*.lab":
when:
- os: windows
store: steam
installDir:
ElectricVLab: {}
launch:
@ -234137,10 +234124,6 @@ For Honor:
steam:
id: 304390
For Inco:
files:
"<home>/AppData/LocalLow/*.FI":
when:
- store: steam
installDir:
For Inco: {}
launch:
@ -267503,10 +267486,6 @@ Guardian of the Future:
when:
- os: linux
store: steam
"<home>/Library/RenPy/**/*.save":
when:
- os: mac
store: steam
"<winAppData>/RenPy/GuardianOfTheFuture-1564986983/*.save":
when:
- os: windows
@ -276205,9 +276184,6 @@ Harvest Life:
id: 1246870
"Harvest Moon: The Winds of Anthos":
files:
"<base>/<storeUserId>/**/*.sav":
when:
- store: steam
"<home>/AppData/LocalLowNatsume Inc_/Harvest Moon_ The Winds of Anthos/<storeUserId>/*.sav":
when:
- os: windows
@ -311527,10 +311503,6 @@ Instinct (2018):
when:
- os: linux
store: steam
"<home>/Library/RenPy/*.save":
when:
- os: mac
store: steam
"<winAppData>/<winAppData>/RenPy/Instinct-1523731438/*.save":
when:
- os: windows
@ -321599,10 +321571,6 @@ Journey of Johann:
steam:
id: 625630
Journey of Life:
files:
"<winDocuments>/My Games/*.jol":
when:
- store: steam
installDir:
Journey of Life: {}
launch:
@ -370789,9 +370757,6 @@ Marimba VR:
id: 560930
Marinatide:
files:
"<base>/<storeUserId>/*.sav":
when:
- store: steam
"<base>/Marinatide.app/Contents/savegame/<storeUserId>/*.sav":
when:
- os: mac
@ -488588,10 +488553,6 @@ Regiments:
when:
- os: mac
store: steam
"<xdgConfig>/unity3d/<storeUserId>/RGT*.sav":
when:
- os: linux
store: steam
gog:
id: 1770055681
installDir:
@ -552856,10 +552817,6 @@ Sounds of Verity:
when:
- os: linux
store: steam
"<home>/Library/RenPy/*.save":
when:
- os: mac
store: steam
"<winAppData>/<home>/AppDate/Roaming/RenPy/SoundsOfVerity/*.save":
when:
- os: windows
@ -555773,10 +555730,6 @@ Space Reign:
id: 1762570
Space Ribbon:
files:
"<home>/Documents/**/*.sav":
when:
- os: mac
store: steam
"<home>/Saved Games/SpaceRibbon/**/*.sav":
when:
- os: windows

View file

@ -4609,6 +4609,7 @@
* [Christmas Cats Revenge](https://www.pcgamingwiki.com/wiki/?curid=153616)
* [Christmas Clicker: Idle Gift Builder](https://www.pcgamingwiki.com/wiki/?curid=124024)
* [Christmas Crisis](https://www.pcgamingwiki.com/wiki/?curid=156075)
* [Christmas Defence](https://www.pcgamingwiki.com/wiki/?curid=124094)
* [Christmas Eve: Midnight's Call](https://www.pcgamingwiki.com/wiki/?curid=54649)
* [Christmas Mahjong](https://www.pcgamingwiki.com/wiki/?curid=113894)
* [Christmas Mahjong 2](https://www.pcgamingwiki.com/wiki/?curid=113882)
@ -7987,6 +7988,7 @@
* [Electric Sheep: A Cyberpunk Dystopia](https://www.pcgamingwiki.com/wiki/?curid=145242)
* [Electric Zombies!](https://www.pcgamingwiki.com/wiki/?curid=33932)
* [ElectricScribe](https://www.pcgamingwiki.com/wiki/?curid=65055)
* [ElectricVLab](https://www.pcgamingwiki.com/wiki/?curid=108796)
* [ElectriX: Electro Mechanic Simulator](https://www.pcgamingwiki.com/wiki/?curid=63867)
* [Electro Pong VR](https://www.pcgamingwiki.com/wiki/?curid=66227)
* [Electronauts](https://www.pcgamingwiki.com/wiki/?curid=78796)
@ -9546,6 +9548,7 @@
* [Footy Showdown](https://www.pcgamingwiki.com/wiki/?curid=169546)
* [For a Better Country](https://www.pcgamingwiki.com/wiki/?curid=145320)
* [For Food Sake! VR](https://www.pcgamingwiki.com/wiki/?curid=87041)
* [For Inco](https://www.pcgamingwiki.com/wiki/?curid=148593)
* [For Rent: Haunted House](https://www.pcgamingwiki.com/wiki/?curid=80816)
* [For the Night](https://www.pcgamingwiki.com/wiki/?curid=150424)
* [For the Revenge](https://www.pcgamingwiki.com/wiki/?curid=104665)
@ -13303,6 +13306,7 @@
* [Journey For Elysium](https://www.pcgamingwiki.com/wiki/?curid=142121)
* [Journey of Greed](https://www.pcgamingwiki.com/wiki/?curid=131980)
* [Journey of Haha](https://www.pcgamingwiki.com/wiki/?curid=136816)
* [Journey of Life](https://www.pcgamingwiki.com/wiki/?curid=92189)
* [Journey of the Fox](https://www.pcgamingwiki.com/wiki/?curid=94491)
* [Journey of the King](https://www.pcgamingwiki.com/wiki/?curid=49119)
* [Journey of the Light](https://www.pcgamingwiki.com/wiki/?curid=59760)

View file

@ -95,20 +95,10 @@ fn too_broad(path: &str) -> bool {
"C:/Program Files".to_string(),
"C:/Program Files (x86)".to_string(),
] {
if path == item {
return true;
}
}
// Several games/episodes are grouped together here.
for item in [
format!("{HOME}/*/"),
format!("{HOME}/**/"),
format!("{WIN_DOCUMENTS}/Telltale Games/*/"),
format!("{XDG_CONFIG}/unity3d/*"),
format!("{XDG_DATA}/unity3d/*"),
] {
if path.starts_with(&item) {
if path == item
|| path.starts_with(&format!("{item}/*"))
|| path.starts_with(&format!("{item}/{STORE_USER_ID}"))
{
return true;
}
}