From 001fdb8b3256c9f6f90f996d1ac24edffd3f8fd2 Mon Sep 17 00:00:00 2001 From: mtkennerly Date: Tue, 31 May 2022 20:00:01 +0800 Subject: [PATCH] Flag two missed irregular entries --- data/steam-game-cache.yaml | 4 +++- src/steam.ts | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/data/steam-game-cache.yaml b/data/steam-game-cache.yaml index 3a2b8d3e..2eb79f2b 100644 --- a/data/steam-game-cache.yaml +++ b/data/steam-game-cache.yaml @@ -141801,7 +141801,8 @@ launch: - description: Launch executable: BretAirborne.exe -'342520': {} +'342520': + irregular: true '342530': installDir: HNL-PPPP launch: @@ -168007,6 +168008,7 @@ executable: FreezeME_Linux.x86_64 type: default '390220': + irregular: true nameLocalized: german: Klomanager Deluxe '390290': diff --git a/src/steam.ts b/src/steam.ts index c7ca7888..dbcf5824 100644 --- a/src/steam.ts +++ b/src/steam.ts @@ -43,8 +43,13 @@ export class SteamGameCacheFile extends YamlFile { this.data[key] = {}; const installDir = info.apps[key].appinfo.config?.installdir; - if (installDir !== undefined && !this.isIrregularString(installDir)) { - this.data[key].installDir = installDir; + if (installDir !== undefined) { + if (!this.isIrregularString(installDir)) { + // Avoid: https://github.com/DoctorMcKay/node-steam-user/issues/397 + this.data[key].installDir = installDir; + } else { + this.data[key].irregular = true; + } } const nameLocalized = info.apps[key].appinfo.common?.name_localized;