summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2020-01-23 15:23:07 -0500
committerJosh Ferrell <josh@vector35.com>2020-02-06 15:24:27 -0500
commitec29fc6e601d91c10027ed9277a8bc89f8e5bc7d (patch)
tree4df4e2040168932b27a085e1778a1c927c4dd30d /binaryview.cpp
parent53fecf0f3cd4557d284eb29a5a5ed96ba43f0b50 (diff)
Add clean saving
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index 3c5991d0..b05f4d02 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -1117,34 +1117,34 @@ bool BinaryView::IsBackedByDatabase() const
}
-bool BinaryView::CreateDatabase(const string& path)
+bool BinaryView::CreateDatabase(const string& path, bool clean)
{
auto parent = GetParentView();
if (parent)
- return parent->CreateDatabase(path);
- return m_file->CreateDatabase(path, this);
+ return parent->CreateDatabase(path, clean);
+ return m_file->CreateDatabase(path, this, clean);
}
bool BinaryView::CreateDatabase(const string& path,
- const function<void(size_t progress, size_t total)>& progressCallback)
+ const function<void(size_t progress, size_t total)>& progressCallback, bool clean)
{
auto parent = GetParentView();
if (parent)
- return parent->CreateDatabase(path);
- return m_file->CreateDatabase(path, this, progressCallback);
+ return parent->CreateDatabase(path, clean);
+ return m_file->CreateDatabase(path, this, progressCallback, clean);
}
-bool BinaryView::SaveAutoSnapshot()
+bool BinaryView::SaveAutoSnapshot(bool clean)
{
- return m_file->SaveAutoSnapshot(this);
+ return m_file->SaveAutoSnapshot(this, clean);
}
-bool BinaryView::SaveAutoSnapshot(const function<void(size_t progress, size_t total)>& progressCallback)
+bool BinaryView::SaveAutoSnapshot(const function<void(size_t progress, size_t total)>& progressCallback, bool clean)
{
- return m_file->SaveAutoSnapshot(this, progressCallback);
+ return m_file->SaveAutoSnapshot(this, progressCallback, clean);
}