Build a loopback client copy with TypeScript

Add the shared BLK, VROMFS, executable patch, and build packages. Preserve
typed fields and shared name tables when reading BLK data. Rewrite the
service endpoints in place so the original environment names remain
available to the client, then build the client copy.
This commit is contained in:
N0VAN0M4LY committed 2026-11-24 00:35:13 +08:00
1 parent 0117c02677
commit 5421268fbf
44 files changed
+1986 -1

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
/** A patch cannot be applied, so nothing was written. */
export class PatchError extends Error {
override name = 'PatchError';
}
/** A patch definition on disk is malformed. */
export class DefinitionError extends PatchError {
override name = 'DefinitionError';
}
/**
* 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
*.
*/
export class LocateError extends PatchError {
override name = 'LocateError';
}
/** The bytes at a located site are not what the definition expects: a different game build, or already patched. */
export class VerifyError extends PatchError {
override name = 'VerifyError';
}
/** The file is not a PE executable this code understands. */
export class PeFormatError extends Error {
override name = 'PeFormatError';
}