-
I've just started with ImHex and have successfully created a pattern, but I couldn't figure out how to actually use this pattern on the data. I've looked everywhere in the menus and couldn't find a way to do that, while "Load pattern..." simply loaded the pattern data into the editor. It doesn't seem to be mentioned in the docs either. Would appreciate a pointer :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind! Sorry. Looked at #237 and got my answer: After declaring a struct in the pattern, the struct has to be "instantiated" i.e. placed at an offset for ImHex to pick it up. I nailed the declaration but wasn't aware of the second part. This is what the solution looks like: struct module_header {
u32 magic;
u32 version;
// ...
};
module_header header @0x00; // This is important! I went looking for a placement button because I was in a different mindset. |
Beta Was this translation helpful? Give feedback.
Never mind! Sorry. Looked at #237 and got my answer:
After declaring a struct in the pattern, the struct has to be "instantiated" i.e. placed at an offset for ImHex to pick it up. I nailed the declaration but wasn't aware of the second part. This is what the solution looks like:
I went looking for a placement button because I was in a different mindset.