From de77d8ad64a3ed39e362f4fa979132d47d5a056c Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Fri, 10 Jul 2020 14:07:48 -0400 Subject: Add save settings --- binaryview.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index a9b25a3c..102578b7 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1126,34 +1126,34 @@ bool BinaryView::IsBackedByDatabase() const } -bool BinaryView::CreateDatabase(const string& path, bool clean) +bool BinaryView::CreateDatabase(const string& path, Ref settings) { auto parent = GetParentView(); if (parent) - return parent->CreateDatabase(path, clean); - return m_file->CreateDatabase(path, this, clean); + return parent->CreateDatabase(path, settings); + return m_file->CreateDatabase(path, this, settings); } bool BinaryView::CreateDatabase(const string& path, - const function& progressCallback, bool clean) + const function& progressCallback, Ref settings) { auto parent = GetParentView(); if (parent) - return parent->CreateDatabase(path, clean); - return m_file->CreateDatabase(path, this, progressCallback, clean); + return parent->CreateDatabase(path, settings); + return m_file->CreateDatabase(path, this, progressCallback, settings); } -bool BinaryView::SaveAutoSnapshot(bool clean) +bool BinaryView::SaveAutoSnapshot(Ref settings) { - return m_file->SaveAutoSnapshot(this, clean); + return m_file->SaveAutoSnapshot(this, settings); } -bool BinaryView::SaveAutoSnapshot(const function& progressCallback, bool clean) +bool BinaryView::SaveAutoSnapshot(const function& progressCallback, Ref settings) { - return m_file->SaveAutoSnapshot(this, progressCallback, clean); + return m_file->SaveAutoSnapshot(this, progressCallback, settings); } -- cgit v1.3.1