Fix mapping for LocalLow on Windows

This commit is contained in:
mtkennerly 2021-02-09 17:14:47 -05:00
parent 9d642a6a0d
commit 014c293117
5 changed files with 83 additions and 81 deletions

View file

@ -19,6 +19,7 @@ interface Cli {
irregularPathUntagged?: boolean,
tooBroad?: boolean,
tooBroadUntagged?: boolean,
pathContains?: string,
skipUntil?: string,
recent?: boolean,
limit?: number,
@ -83,6 +84,7 @@ async function main() {
tooBroadUntagged: args.tooBroadUntagged ?? false,
irregularPath: args.irregularPath ?? false,
irregularPathUntagged: args.irregularPathUntagged ?? false,
pathContains: args.pathContains,
skipUntil: args.skipUntil,
games: args._,
recent: args.recent,

View file

@ -55,6 +55,7 @@ export class ManifestFile extends YamlFile<Manifest> {
irregularPathUntagged: boolean,
tooBroad: boolean,
tooBroadUntagged: boolean,
pathContains: string | undefined,
skipUntil: string | undefined,
games: Array<string> | undefined,
recent: boolean | undefined,
@ -74,6 +75,9 @@ export class ManifestFile extends YamlFile<Manifest> {
}
let check = false;
if (filter.pathContains && Object.keys(this.data[title]?.files ?? {}).some(x => x.includes(filter.pathContains))) {
check = true;
}
if (filter.all) {
check = true;
}

View file

@ -152,7 +152,7 @@ const PATH_ARGS: { [arg: string]: { mapped: string, when?: Constraint, registry?
when: { os: "windows" },
},
"userprofile\\appdata\\locallow": {
mapped: "<winAppData>/LocalLow",
mapped: "<home>/AppData/LocalLow",
when: { os: "windows" },
},
appdata: {