bt2hexpat is a 010 Editor Binary Template (.bt) to ImHex Pattern (.hexpat) translator written in Rust.
- 010 Datatypes
- Structs
- Unions
- Enums
- Structs with Arguments
- Struct Bitfields
- Struct/Enum Definitions inside blocks
- Struct/Enum Definitions as variable types
- Typedefs
- Function Definitions
- Expressions
- Statements
- Literals
bgcolor,comment,name,hiddenattributes- Endian functions, and some of the cursor position, printing, string, color, and reading functions
- #defines
It does not currently support translating:
- Other 010 Attributes
- Other 010 Functions
- External DLL functions
Note
The patterns generated by this program are not completely functional, and should only be used as a base.
Note
The translation preserves all of the function calls, and does not preserve any comments.
bt2hexpat template.bt
Requires Rust 1.95. Just do cargo build --release and you're done.
Contributions are welcome!