Vector35 / snippets

plugin for storing and using snippets of useful Binja script
MIT License
22 stars 7 forks source link

Use new python magic variables api #55

Open CouleeApps opened 3 weeks ago

CouleeApps commented 3 weeks ago

As of recent dev versions, the magic variables in the python console are now defined with an api and don't have to be manually reimplemented. It would be useful if snippets also used this api so you could make use of all the same variables that the console does.

Note: don't actually push this until a stable release comes out, unless you also include a fallback implementation for older versions (like current stable) that don't have this api yet.

psifertex commented 3 weeks ago

What's the new API?

psifertex commented 3 weeks ago

https://dev-api.binary.ninja/binaryninja.scriptingprovider-module.html#binaryninja.scriptingprovider.PythonScriptingProvider.MagicVariable

PythonScriptingProvider.magic_variables