Add handling of {{p|ubisoftconnect}}, and fix store assignment when you buy a game on Steam but the saves are in the Ubisoft Connect root
This commit is contained in:
parent
7489a7834e
commit
1e65ea805a
2 changed files with 34 additions and 21 deletions
12
src/wiki.ts
12
src/wiki.ts
|
@ -124,6 +124,12 @@ const PATH_ARGS: { [arg: string]: { mapped: string, when?: Constraint, registry?
|
|||
store: "uplay"
|
||||
},
|
||||
},
|
||||
ubisoftconnect: {
|
||||
mapped: "<root>",
|
||||
when: {
|
||||
store: "uplay"
|
||||
},
|
||||
},
|
||||
hkcu: {
|
||||
mapped: "HKEY_CURRENT_USER",
|
||||
when: { os: "windows" },
|
||||
|
@ -400,7 +406,11 @@ function getConstraintFromSystem(system: string, path: string): Constraint {
|
|||
constraint.store = "origin";
|
||||
} else {
|
||||
constraint.os = parseOs(system);
|
||||
constraint.store = getStoreConstraintFromPath(path);
|
||||
}
|
||||
|
||||
const storeFromPath = getStoreConstraintFromPath(path);
|
||||
if (storeFromPath !== undefined) {
|
||||
constraint.store = storeFromPath;
|
||||
}
|
||||
|
||||
return constraint;
|
||||
|
|
Reference in a new issue