#22: Fix handling for possibly undefined Steam app data
This commit is contained in:
parent
1ad1642583
commit
6d34984166
1 changed files with 5 additions and 1 deletions
|
@ -90,7 +90,11 @@ function integrateWikiData(game: Game, cache: WikiGameCache[""]): void {
|
||||||
game.registry = info.registry;
|
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) {
|
if (appInfo.installDir !== undefined) {
|
||||||
game.installDir = { [appInfo.installDir]: {} };
|
game.installDir = { [appInfo.installDir]: {} };
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue