Work on #16 - add PCGW gogcom_id to manifest

This commit is contained in:
Sascha Lüdecke 2022-11-01 12:19:03 +01:00
parent c9be033706
commit 555f869dfa
4 changed files with 22 additions and 0 deletions

View file

@ -40,6 +40,9 @@ export interface Game {
steam?: {
id?: number
};
gog?: {
id?: number,
};
}
export interface Constraint {
@ -77,6 +80,9 @@ function integrateWikiData(game: Game, cache: WikiGameCache[""]): void {
if (cache.steam !== undefined) {
game.steam = { id: cache.steam };
}
if (cache.gog !== undefined) {
game.gog = { id: cache.gog };
}
const info = parseTemplates(cache.templates ?? []);
game.files = info.files;
game.registry = info.registry;