From 5d01e8e553280f1f9e7676ea32af183f6e23efd7 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 11 Sep 2019 11:38:45 -0400 Subject: Add ability to open a database with options. --- python/filemetadata.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/filemetadata.py') 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) -- cgit v1.3.1