Handle Origin in system field and import recent changes from the wiki

This commit is contained in:
mtkennerly 2020-08-15 18:49:51 -04:00
parent 0cdbad886b
commit fbad6f2fb2
7 changed files with 128 additions and 70 deletions

View file

@ -372,6 +372,8 @@ function getConstraintFromSystem(system: string, path: string): Constraint {
constraint.store = "epic";
} else if (system.match(/uplay/i)) {
constraint.store = "uplay";
} else if (system.match(/origin/i)) {
constraint.store = "origin";
} else {
constraint.os = parseOs(system);
constraint.store = getStoreConstraintFromPath(path);