diff --git a/src/manifest.ts b/src/manifest.ts index 3c4b505f..0a7c03fb 100644 --- a/src/manifest.ts +++ b/src/manifest.ts @@ -90,7 +90,11 @@ function integrateWikiData(game: Game, cache: WikiGameCache[""]): void { game.registry = info.registry; } -function integrateSteamData(game: Game, appInfo: SteamGameCache[""]): void { +function integrateSteamData(game: Game, appInfo: SteamGameCache[""] | undefined): void { + if (appInfo === undefined) { + return; + } + if (appInfo.installDir !== undefined) { game.installDir = { [appInfo.installDir]: {} }; }