Refresh Steam data for Lies of P

This commit is contained in:
mtkennerly 2023-09-19 23:40:55 +08:00
parent aebe293878
commit 9995c2f8af
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
3 changed files with 18 additions and 2 deletions

View file

@ -91251,7 +91251,19 @@
oslist: windows
executable: Retro Classix Breakthru.exe
type: default
'1627720': {}
'1627720':
installDir: Lies of P
launch:
- config:
osarch: '64'
oslist: windows
description: Lies of P
description_loc:
english: Lies of P
executable: LOP.exe
type: default
nameLocalized:
koreana: P의 거짓 (Lies of P)
'1628120': {}
'1628760':
installDir: Kawaii Neko Girls

View file

@ -106,6 +106,7 @@ async function main() {
args.irregular ?? false,
args.irregularPathUntagged ?? false,
args.limit ?? DEFAULT_GAME_LIMIT,
args._.map(x => x.toString()) ?? [],
);
}

View file

@ -80,7 +80,7 @@ export class SteamGameCacheFile extends YamlFile<SteamGameCache> {
return this.data[key];
}
async refresh(skipUntil: string | undefined, irregularTagged: boolean, irregularUntagged: boolean, limit: number): Promise<void> {
async refresh(skipUntil: string | undefined, irregularTagged: boolean, irregularUntagged: boolean, limit: number, appIds: Array<string>): Promise<void> {
let i = 0;
let foundSkipUntil = false;
for (const appId of Object.keys(this.data).sort()) {
@ -91,6 +91,9 @@ export class SteamGameCacheFile extends YamlFile<SteamGameCache> {
continue;
}
}
if (appIds.length > 0 && !appIds.includes(appId)) {
continue;
}
if (irregularTagged) {
if (!this.data[appId].irregular) {