feat(patcher): 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:
1 parent
89aa5198c3
commit
c3914ec0d6
44 files changed
+1986
-1
No files matched your search
@@ -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';
|
||||
}
|
||||
Reference in new issue
Block a user