Nucleus handler tools › Docs › Context › PatchFile

Context.PatchFile

Open in the workbench (search, and try it in a handler)

Context.PatchFile(
  originalFile: string | number | boolean,
  patchedFile: string | number | boolean,
  patchFind: number[],
  patchReplace: number[]
): boolean
Context.PatchFile(
  originalFile: string | number | boolean,
  patchedFile: string | number | boolean,
  spatchFind: string | number | boolean,
  spatchReplace: string | number | boolean
): boolean

Patches bytes in a file (copy of the original). The file must be excluded from symlinking (e.g. via Game.FileSymlinkExclusions).

✎ AI-written, based on Nucleus GenericContext.cs. Not from the official docs. Is it wrong? Tell us

✎ Parameters: AI-written from the Nucleus source.

Handler API docs

Is this right? Tell us what's wrong
Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop