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

@ -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;