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:
- 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':

View file

@ -43,8 +43,13 @@ export class SteamGameCacheFile extends YamlFile<SteamGameCache> {
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;