dump VST blacklist at end of scan
authorRobin Gareus <robin@gareus.org>
Mon, 3 Aug 2015 13:45:31 +0000 (15:45 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 3 Aug 2015 13:45:31 +0000 (15:45 +0200)
libs/ardour/plugin_manager.cc

index 9dd1d4b6805419b1b19a54bd74016cd13b3af8c0..7759a1d87bfb33dda071a9db6cb2836e8be76b36 100644 (file)
@@ -262,6 +262,18 @@ PluginManager::refresh (bool cache_only)
        }
 #endif //Native linuxVST SUPPORT
 
+#if (defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT)
+               if (!cache_only) {
+                       string fn = Glib::build_filename (ARDOUR::user_cache_directory(), VST_BLACKLIST);
+                       if (Glib::file_test (fn, Glib::FILE_TEST_EXISTS)) {
+                               std::string bl;
+                               std::ifstream ifs (fn.c_str ());
+                               bl.assign ((std::istreambuf_iterator<char> (ifs)), (std::istreambuf_iterator<char> ()));
+                               PBD::info << _("VST Blacklist:") << "\n" << bl << "-----" << endmsg;
+                       }
+               }
+#endif
+
 #ifdef AUDIOUNIT_SUPPORT
        if (cache_only) {
                BootMessage (_("Scanning AU Plugins"));