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

Option to maintain binary order of resources. #201

Open
tomsons26 opened this issue Nov 25, 2022 · 0 comments
Open

Option to maintain binary order of resources. #201

tomsons26 opened this issue Nov 25, 2022 · 0 comments

Comments

@tomsons26
Copy link

tomsons26 commented Nov 25, 2022

Currently they are sorted numerically, checking some binary i have a original rc file for i can tell that the order inside the binary matches the actual rc file order.
In this particular case in the RC i got dialog 135 followed by 129, but when opened in editor it shows dialog 1 followed by 128. Indeed checking the strings in binary however it is dialog 135 followed by 129.
Edit:
Looking into this more you use the winapis to query the resources which parse the resource table
So this is the resource table order.
I guess to restore the binary and thus actual source order would need to parse IMAGE_RESOURCE_DATA_ENTRY entries in the resource table after the fact, reading the OffsetToData and re-sorting the resources by that.

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

No branches or pull requests

1 participant