diff options
| author | Brian Potchik <brian@vector35.com> | 2019-09-11 11:38:45 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2019-09-11 11:38:45 -0400 |
| commit | 5d01e8e553280f1f9e7676ea32af183f6e23efd7 (patch) | |
| tree | 3b271faab8b8cc76600c84caf7553877fcd7958e /python/filemetadata.py | |
| parent | 162ad8604bdbcb1fb36c899e92f5606cd6f231eb (diff) | |
Add ability to open a database with options.
Diffstat (limited to 'python/filemetadata.py')
| -rw-r--r-- | python/filemetadata.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/filemetadata.py b/python/filemetadata.py index 8c6b2cb7..f95c1142 100644 --- a/python/filemetadata.py +++ b/python/filemetadata.py @@ -344,6 +344,12 @@ class FileMetadata(object): return None return binaryninja.binaryview.BinaryView(file_metadata = self, handle = view) + def open_database_for_configuration(self, filename): + view = core.BNOpenDatabaseForConfiguration(self.handle, str(filename)) + if view is None: + return None + return binaryninja.binaryview.BinaryView(file_metadata = self, handle = view) + def save_auto_snapshot(self, progress_func = None): if progress_func is None: return core.BNSaveAutoSnapshot(self.raw.handle) |
