commit 8ecefba1457ef8f64e96d381cf593d28a7fc547d
parent addae40d17e06ffe30743122815b8c1cf06bf5ad
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Wed, 28 Aug 2024 00:42:52 +0200
verify that a local storage data source json can always be written next to the local storage file
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/source/jucePluginLib/patchdb/db.cpp b/source/jucePluginLib/patchdb/db.cpp
@@ -1488,6 +1488,9 @@ namespace pluginLib::patchDB
// if we cannot save patch modifications to a separate file, add them to the global file
if(!saveJson(dataSource))
{
+#ifdef _DEBUG
+ assert(dataSource->type != SourceType::LocalStorage && "expected separate json for local storage, unable to write file");
+#endif
for (const auto& patch : dataSource->patches)
{
if(!patch->modifications || patch->modifications->empty())