From 684a8fd8fd54a391662e72b1113ddbda14e66612 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 30 Nov 2008 19:56:36 +0000 Subject: Some support for bundle saving. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1831 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/ThreadedLoader.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gui/ThreadedLoader.cpp') diff --git a/src/gui/ThreadedLoader.cpp b/src/gui/ThreadedLoader.cpp index 087ade58..d2bfec76 100644 --- a/src/gui/ThreadedLoader.cpp +++ b/src/gui/ThreadedLoader.cpp @@ -147,8 +147,13 @@ ThreadedLoader::save_patch(SharedPtr model, const string& filename) void ThreadedLoader::save_patch_event(SharedPtr model, const string& filename) { - if (App::instance().serialiser()) - App::instance().serialiser()->to_file(model, filename); + if (App::instance().serialiser()) { + Serialiser::Record r(model, filename); + if (filename.find(".ingen.lv2") != string::npos) + App::instance().serialiser()->write_bundle(r); + else + App::instance().serialiser()->to_file(r); + } } -- cgit v1.2.1