add option to disable or bypass plugins

This commit is contained in:
Robin Gareus
2015-09-01 13:27:48 +02:00
parent 531e71b485
commit 0370b1988d
2 changed files with 13 additions and 2 deletions

View File

@@ -86,11 +86,12 @@ print_help ()
int main (int argc, char* argv[])
{
const char *optstring = "vhdD:c:VOU:P";
const char *optstring = "vhBdD:c:VOU:P";
const struct option longopts[] = {
{ "version", 0, 0, 'v' },
{ "help", 0, 0, 'h' },
{ "bypass-plugins", 1, 0, 'B' },
{ "disable-plugins", 1, 0, 'd' },
{ "debug", 1, 0, 'D' },
{ "name", 1, 0, 'c' },
@@ -128,6 +129,10 @@ int main (int argc, char* argv[])
backend_client_name = optarg;
break;
case 'B':
ARDOUR::Session::set_bypass_all_loaded_plugins (true);
break;
case 'd':
ARDOUR::Session::set_disable_all_loaded_plugins (true);
break;