"""Locate and apply the declared changes to aces.exe. The patches themselves live as data under patches/exe/; this package is only the engine. Order of work, and the reason for it: find every site and verify every original byte first (plan), then write (apply). A site that is missing or ambiguous is reported, never guessed, so a game update produces a list of unavailable patches and the features they cover rather than a broken executable. `authoring` and `assemble` are development-side only: they need a disassembler and an assembler, and are imported explicitly rather than from here. """ from .apply import apply_writes, changed_ranges from .definition import LocateSpec, PatchDefinition, PatchEdit, PatchVariant, load_patches, read_locate from .errors import DefinitionError, LocateError, PatchError, VerifyError from .plan import PatchFailure, PatchPlan, PlannedWrite, find_site, plan_patches from .variants import choose_variant __all__ = [ "DefinitionError", "LocateError", "LocateSpec", "PatchDefinition", "PatchEdit", "PatchError", "PatchFailure", "PatchPlan", "PatchVariant", "PlannedWrite", "VerifyError", "apply_writes", "changed_ranges", "choose_variant", "find_site", "load_patches", "plan_patches", "read_locate", ]