leave some todo-notes #6709 (track templates & state)
This commit is contained in:
parent
7383ea6a35
commit
7b6ef41f0c
@ -1736,6 +1736,8 @@ LV2Plugin::set_state(const XMLNode& node, int version)
|
|||||||
prop->value()) << endmsg;
|
prop->value()) << endmsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: special case track-templates
|
||||||
|
// (state must be saved with the template)
|
||||||
std::string state_file = Glib::build_filename(
|
std::string state_file = Glib::build_filename(
|
||||||
plugin_dir(),
|
plugin_dir(),
|
||||||
Glib::build_filename(prop->value(), "state.ttl"));
|
Glib::build_filename(prop->value(), "state.ttl"));
|
||||||
|
@ -4164,6 +4164,10 @@ Route::save_as_template (const string& path, const string& name)
|
|||||||
IO::set_name_in_state (*node.children().front(), name);
|
IO::set_name_in_state (*node.children().front(), name);
|
||||||
|
|
||||||
tree.set_root (&node);
|
tree.set_root (&node);
|
||||||
|
// TODO: special case LV2 plugin state
|
||||||
|
// copy of serialize it. Alternatively:
|
||||||
|
// create a plugin-preset (which can be loaded separately)
|
||||||
|
|
||||||
/* return zero on success, non-zero otherwise */
|
/* return zero on success, non-zero otherwise */
|
||||||
return !tree.write (path.c_str());
|
return !tree.write (path.c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user