From ec29fc6e601d91c10027ed9277a8bc89f8e5bc7d Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 23 Jan 2020 15:23:07 -0500 Subject: Add clean saving --- binaryview.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'binaryview.cpp') 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& progressCallback) + const function& 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& progressCallback) +bool BinaryView::SaveAutoSnapshot(const function& progressCallback, bool clean) { - return m_file->SaveAutoSnapshot(this, progressCallback); + return m_file->SaveAutoSnapshot(this, progressCallback, clean); } -- cgit v1.3.1