Add GJN balances, the local store, and redemption codes
Support currency and entitlement purchases, including packs, from the local store and the in-game payment flow. Expose the supported redemption codes.
This commit is contained in:
1 parent
d95a5d8f0c
commit
cfa6c04aa6
26 files changed
+1352
-29
No files matched your search
@@ -119,6 +119,14 @@ class TrackedSource implements DatasetSource {
|
||||
return gamePack.readBlk(path);
|
||||
}
|
||||
|
||||
readText(pack: GamePackName, path: string): string {
|
||||
const gamePack = this.#gameFiles.pack(pack);
|
||||
const sha1 = gamePack.fileDigest(path);
|
||||
if (sha1 === undefined) throw new Error(`${pack} has no file ${path}`);
|
||||
this.#files.set(`${pack}/${path}`, { pack, path, sha1 });
|
||||
return gamePack.readText(path);
|
||||
}
|
||||
|
||||
listFiles(pack: GamePackName): readonly string[] {
|
||||
const paths = this.#gameFiles.pack(pack).paths();
|
||||
this.#listings.set(pack, { pack, sha1: listingDigest(paths) });
|
||||
|
||||
Reference in new issue
Block a user