Flag two missed irregular entries

This commit is contained in:
mtkennerly 2022-05-31 20:00:01 +08:00
parent dae2cd5695
commit 001fdb8b32
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
2 changed files with 10 additions and 3 deletions

View file

@ -141801,7 +141801,8 @@
launch: launch:
- description: Launch - description: Launch
executable: BretAirborne.exe executable: BretAirborne.exe
'342520': {} '342520':
irregular: true
'342530': '342530':
installDir: HNL-PPPP installDir: HNL-PPPP
launch: launch:
@ -168007,6 +168008,7 @@
executable: FreezeME_Linux.x86_64 executable: FreezeME_Linux.x86_64
type: default type: default
'390220': '390220':
irregular: true
nameLocalized: nameLocalized:
german: Klomanager Deluxe german: Klomanager Deluxe
'390290': '390290':

View file

@ -43,8 +43,13 @@ export class SteamGameCacheFile extends YamlFile<SteamGameCache> {
this.data[key] = {}; this.data[key] = {};
const installDir = info.apps[key].appinfo.config?.installdir; const installDir = info.apps[key].appinfo.config?.installdir;
if (installDir !== undefined && !this.isIrregularString(installDir)) { if (installDir !== undefined) {
if (!this.isIrregularString(installDir)) {
// Avoid: https://github.com/DoctorMcKay/node-steam-user/issues/397
this.data[key].installDir = installDir; this.data[key].installDir = installDir;
} else {
this.data[key].irregular = true;
}
} }
const nameLocalized = info.apps[key].appinfo.common?.name_localized; const nameLocalized = info.apps[key].appinfo.common?.name_localized;