Handle Origin in system field and import recent changes from the wiki
This commit is contained in:
parent
0cdbad886b
commit
fbad6f2fb2
7 changed files with 128 additions and 70 deletions
|
@ -4,7 +4,7 @@ import { WikiGameCache, getGame, pathIsTooBroad } from "./wiki";
|
|||
|
||||
export type Os = "dos" | "linux" | "mac" | "windows";
|
||||
|
||||
export type Store = "epic" | "gog" | "microsoft" | "steam" | "uplay";
|
||||
export type Store = "epic" | "gog" | "microsoft" | "steam" | "uplay" | "origin";
|
||||
|
||||
export type Tag = "config" | "save";
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in a new issue