Skip to content

Project Settings #2120

Answered by psifertex
Martyx00 asked this question in API
Nov 10, 2020 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Depending on what you want to use it for, the store_metadata / query_metadata APIs are a bit simpler to use.

That said, here's a quick example that uses the resource-based settings. Note that a project-based setting will actually create a .binaryninja/ folder and put the settings in there for multiple files. I don't think you want that. A resource setting will put the setting in the BNDB itself:

>>> import binaryninja
>>> bv = binaryninja.open_view('/tmp/ls')
>>> plugin_settings = binaryninja.Settings()
>>> plugin_settings.register_setting("ui.dothething", '{"description" : "Tells Zhu Li to do the thing.", "title" : "Do the thing", "default" : true, "type" : "boolean"}')
True
>>> plugin_s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@psifertex
Comment options

Answer selected by psifertex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants