Skip to content

pizzart/bt2hexpat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bt2hexpat

Description

bt2hexpat is a 010 Editor Binary Template (.bt) to ImHex Pattern (.hexpat) translator written in Rust.

Supported Features

  • 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, hidden attributes
  • 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.

Usage

bt2hexpat template.bt

Building

Requires Rust 1.95. Just do cargo build --release and you're done.

Contributing

Contributions are welcome!

About

bt2hexpat is a Rust program for translating 010 Editor Binary Templates into ImHex Patterns

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages