Skip to content

Add ability to specify byte patterns to find data variables #98

@monkeyman192

Description

@monkeyman192

It is common practice to find variables in a binary using a byte pattern.
It would be good to be able to support this by creating something like the following:

class cEgModules:
    mgpSceneManager: Annotated[
        cEgSceneManager,
        Pattern("48 39 3D ? ? ? ? 75 ? B9 ? ? ? ? E8 ? ? ? ? 48 85 C0 74 ? 48 8B C8 E8 ? ? ? ? EB ? 48 8B C7 48 89 05 ? ? ? ? E8", instruction_size=3)
    ]

This won't need to combine with the existing partial struct system, this will just be used for creating variables which are "static" (insofar as they aren't bound to a class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions