Skip to content

Use 0x70 bitmask for TargetID #38

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

Merged
merged 1 commit into from
Mar 30, 2025
Merged

Conversation

Spectre5
Copy link
Contributor

I have not thoroughly tested this, but this change should at least work for a file with an item_type of 195 (0xC3). The current logic doesn't work since 0xC3 is larger than 0x4F.

Closes #37

@Matmaus
Copy link
Owner

Matmaus commented Mar 30, 2025

You are right, they (0x20, 0x30 and 0x40) should have 0x70 bitmask applied before matching. Thanks for the fix and for pointing me to the explanation 👍 .

Luckily, one of the test samples benefits from this fix and can prove it (the failing one). I will merge this PR and fix this test afterwards.

@Matmaus Matmaus merged commit 8aec1fa into Matmaus:master Mar 30, 2025
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UserWarning: Unknown TargetID 195 - Needs a Bitmask
2 participants