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

added version check and branch for BWN_DISASMS #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cccs-cw
Copy link

@cccs-cw cccs-cw commented Dec 11, 2024

idaapi.BWN_DISASMS is moved to ida_kernwin.BWN_DISASM
https://python.docs.hex-rays.com/ida_kernwin#bwn_disasms

Note: for ida_kernwin.BWN_DISASM there is no S at the end as in the current working version, both have the same value ida_kernwin.BWN_DISASM according to the documentation, however if you try to access ida_kernwin.BWN_DISASMS in IDA v9.0 it does not exists.

BWN_DISASM

BWN_DISASM = 27

BWN_DISASMS

BWN_DISASMS = 27

source: https://python.docs.hex-rays.com/ida_kernwin#bwn_disasm

to address this i've added a global constant where the value is set based on the version

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.

1 participant