Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[[format_write]] is broken #1694

Open
1 task done
Kein opened this issue May 21, 2024 · 1 comment
Open
1 task done

[[format_write]] is broken #1694

Kein opened this issue May 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Kein
Copy link

Kein commented May 21, 2024

Operating System

Windows

What's the issue you encountered?

I'mHex v 1.33.0

u8               SaveHash      [[format_write("WriteHash")]];

// Hash handling
fn WriteHash(str v) { return 12; };

Result: nothing happens. Completely nothing, not even user-input value being written as-is.

How can the issue be reproduced?

See above.

ImHex Version

1.33.0

ImHex Build Type

  • Nightly or built from sources

Installation type

manual

Additional context?

format_read works

@Kein Kein added the bug Something isn't working label May 21, 2024
@EtiTheSpirit
Copy link

EtiTheSpirit commented May 25, 2024

I can reproduce this on 1.33.2 Release installed via the non-portable .msi installer on Windows

I tested this myself and as tested by OP, the return value of the function is entirely ignored and discarded in all cases. In my case I am using a custom struct rather than u8, but the same issue applies here.

I will also add that nothing is output into the log console at debug level with respect to the pattern data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants