Skip to main content

Module patch

Module patch 

Source

Structs§

BytesReplacement
One find -> replace byte pair.
StringReplacement
One find -> replace text pair, expressed as ordinary UTF-8 Rust strings and transcoded to Windows-1252 at apply time.

Enums§

MemoryPatch
A single content modification applied to a file’s bytes before the game reads it.
ScriptSource
The source of a script patch. Explicitly tagged to avoid ambiguous filesystem probing.

Functions§

apply_all
Applies a whole list of patches in order, each operating on the previous one’s output. rel_key is forwarded to each patch’s MemoryPatch::apply – see there for what it’s used for.