Washi1337 / OldRod

An automated KoiVM disassembler and devirtualisation utility
GNU General Public License v3.0
349 stars 80 forks source link

Option that overrides constants #12

Closed TobitoFatitoRE closed 5 years ago

TobitoFatitoRE commented 5 years ago

Is your feature request related to a problem? Please describe. People starting to find out that you can scramble the mdtokens of constants, making the tool useless. I'd love to see a feature added to override the constant values if possible :)

Describe the solution you'd like --constants-override "file (json or txt)", which will override the constant (for example: 0:15 means REG_R0 has a value of 15)

Washi1337 commented 5 years ago

I added support for user-defined constants. Check doc/example-config.json. Names are case insensitive, and some basic sanity checks (such as duplicated key verification) are added. Use --config file.json.

Let me know if you miss anything or like something changed.

TobitoFatitoRE commented 5 years ago

Perfect, thank you :)