Make source comments and build tools self-contained
This commit is contained in:
1 parent
4a2f1c120c
commit
5df305e2f9
106 files changed
+152
-183
No files matched your search
@@ -2,8 +2,7 @@
|
||||
* Deterministic GUID derived from a text (SHA-1, formatted 8-4-4-4-12, upper case). The build
|
||||
* registers `stableGuid(<entitlement>)` for the offline vehicle packs in config/gui.blk
|
||||
* `bundles/guid`, and the local server gives the same GUID to the same store product, so the
|
||||
* game's `getBundleId` → `get_url_for_purchase` → `item_info.php` chain finds the pack
|
||||
*. One definition, used by both packages.
|
||||
* game's `getBundleId` → `get_url_for_purchase` → `item_info.php` chain finds the pack. One definition, used by both packages.
|
||||
*/
|
||||
import { createHash } from 'node:crypto';
|
||||
|
||||
|
||||
@@ -10,8 +10,7 @@ export class DefinitionError extends PatchError {
|
||||
|
||||
/**
|
||||
* A patch site could not be found, or was found in more than one place. The caller reports
|
||||
* which patches and features are affected; it never falls back to a guessed address
|
||||
*.
|
||||
* which patches and features are affected; it never falls back to a guessed address.
|
||||
*/
|
||||
export class LocateError extends PatchError {
|
||||
override name = 'LocateError';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* PaymentMethods: lets scripts/onlineShop/onlinePurchase.nut offer GJN payment directly
|
||||
* inside the Golden Eagles and Premium Account windows (stock game_settings.blk restricts it
|
||||
* with PS4Access; implementation notes).
|
||||
* with PS4Access).
|
||||
*/
|
||||
import { ensureBlock, setParam, type BlkBlock } from '@wto/blk';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* The game version of a stock folder, and the versions the patches were verified on
|
||||
* (implementation notes: a version that differs is only pointed out, never refused).
|
||||
* (a version that differs is only pointed out, never refused).
|
||||
*
|
||||
* The version is the file version of win64/aces.exe: the VS_FIXEDFILEINFO block in its version
|
||||
* resource, which Windows shows as "File version" (2.61.0.37 for the target build).
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
/**
|
||||
* Rebuild gui.vromfs.bin by applying the script patch definitions in the GUI patch folder
|
||||
* (implementation notes, format in gui-patch-definition.ts).
|
||||
* (format in gui-patch-definition.ts).
|
||||
*
|
||||
* Every edit must find its stock text exactly once in the current script. A patch with an edit
|
||||
* that does not is left out whole, never half applied, and listed with the features it covers
|
||||
*, the same way an unavailable exe patch is; the other patches are applied.
|
||||
* that does not is left out whole, never half applied, and listed with the features it covers, the same way an unavailable exe patch is; the other patches are applied.
|
||||
*/
|
||||
import type { PatchFailure } from '@wto/exepatch';
|
||||
import { getFile, putFile, readArchive, writeArchive, type Archive } from '@wto/vromfs';
|
||||
|
||||
@@ -23,8 +23,7 @@ const NETWORK_BLOCK = 'network';
|
||||
|
||||
/**
|
||||
* GUIDs added to config/gui.blk bundles/guid so scripts/onlineShop/entitlementsInfo.nut
|
||||
* requests GJN prices for GJN-priced Premium Account tiers alongside the stock eagles* packs
|
||||
*.
|
||||
* requests GJN prices for GJN-priced Premium Account tiers alongside the stock eagles* packs.
|
||||
*/
|
||||
export const EXTRA_STORE_BUNDLE_GUIDS: ReadonlyArray<readonly [entitlement: string, guid: string]> = [
|
||||
['wto_prem_20d', 'A1E00020-5754-4F46-8F00-000000000020'],
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/**
|
||||
* Rebuild a data pack with some of its BLK documents edited and, optionally, new files added.
|
||||
* Every other file of the pack is kept byte for byte. Edited documents are stored self-contained (they no longer depend on
|
||||
* the pack's shared name map), which the game accepts in every loading mode
|
||||
*.
|
||||
* the pack's shared name map), which the game accepts in every loading mode.
|
||||
*/
|
||||
import { decodeBlk, encodeBlk, parseSharedNameMap, type BlkBlock } from '@wto/blk';
|
||||
import { getFile, NAME_MAP_PATH, putFile, readArchive, writeArchive, type Archive } from '@wto/vromfs';
|
||||
|
||||
@@ -7,7 +7,7 @@ import { ESSENTIAL_FEATURES } from './essential-features.ts';
|
||||
import { loadGuiPatches } from './gui-patch-definition.ts';
|
||||
|
||||
export interface PatchFeature {
|
||||
/** The feature tag, e.g. "K-侦察"; the letter before the dash is the inventory section. */
|
||||
/** Feature tag with a prefix identifying its feature group. */
|
||||
readonly tag: string;
|
||||
/** A copy cannot run, or cannot stay apart from the online game, without it. */
|
||||
readonly essential: boolean;
|
||||
|
||||
Reference in new issue
Block a user