diff options
author | Robin Gareus <robin@gareus.org> | 2017-01-23 19:53:18 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-01-23 19:53:18 +0100 |
commit | 8b453f5f2a639f9f9ec3b367f4adae6d3abe8799 (patch) | |
tree | 299706bfda0a7d2aa497248fb5aabaa48e2ae5d5 /libs | |
parent | 93f837b43eb146f43b278a242acb66d64457c941 (diff) |
Safe Mode: disable VST scan
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/plugin_manager.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 3a0a8fab59..5254b41a78 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -846,6 +846,11 @@ PluginManager::windows_vst_discover_from_path (string path, bool cache_only) DEBUG_TRACE (DEBUG::PluginManager, string_compose ("Discovering Windows VST plugins along %1\n", path)); + if (Session::get_disable_all_loaded_plugins ()) { + info << _("Disabled WindowsVST scan (safe mode)") << endmsg; + return -1; + } + if (Config->get_verbose_plugin_scan()) { info << string_compose (_("--- Windows VST plugins Scan: %1"), path) << endmsg; } @@ -1047,6 +1052,11 @@ PluginManager::mac_vst_discover_from_path (string path, bool cache_only) vector<string> plugin_objects; vector<string>::iterator x; + if (Session::get_disable_all_loaded_plugins ()) { + info << _("Disabled MacVST scan (safe mode)") << endmsg; + return -1; + } + find_paths_matching_filter (plugin_objects, path, mac_vst_filter, 0, true, true, true); for (x = plugin_objects.begin(); x != plugin_objects.end (); ++x) { @@ -1150,6 +1160,11 @@ PluginManager::lxvst_discover_from_path (string path, bool cache_only) vector<string>::iterator x; int ret = 0; + if (Session::get_disable_all_loaded_plugins ()) { + info << _("Disabled LinuxVST scan (safe mode)") << endmsg; + return -1; + } + #ifndef NDEBUG (void) path; #endif |