VST3: log bundle-path

This commit is contained in:
Robin Gareus 2021-06-25 20:28:45 +02:00
parent f28ea675ee
commit 4e036a73b5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
5 changed files with 7 additions and 7 deletions

View file

@ -304,7 +304,7 @@ private:
int vst3_discover_from_path (std::string const& path, bool cache_only = false);
int vst3_discover (std::string const& path, bool cache_only = false);
#ifdef VST3_SUPPORT
void vst3_plugin (std::string const& module_path, VST3Info const&);
void vst3_plugin (std::string const&, std::string const&, VST3Info const&);
bool run_vst3_scanner_app (std::string bundle_path) const;
#endif

View file

@ -75,7 +75,7 @@ LIBARDOUR_API extern std::string
vst3_valid_cache_file (std::string const& module_path, bool verbose = false, bool* is_new = NULL);
LIBARDOUR_API extern bool
vst3_scan_and_cache (std::string const& module_path, std::string const& bundle_path, boost::function<void (std::string const&, VST3Info const&)> cb, bool verbose = false);
vst3_scan_and_cache (std::string const& module_path, std::string const& bundle_path, boost::function<void (std::string const&, std::string const&, VST3Info const&)> cb, bool verbose = false);
} // namespace ARDOUR

View file

@ -1600,7 +1600,7 @@ PluginManager::vst3_discover_from_path (string const& path, bool cache_only)
}
void
PluginManager::vst3_plugin (string const& module_path, VST3Info const& i)
PluginManager::vst3_plugin (string const& module_path, string const& bundle_path, VST3Info const& i)
{
PluginInfoPtr info (new VST3PluginInfo ());
@ -1709,7 +1709,7 @@ PluginManager::vst3_discover (string const& path, bool cache_only)
for (XMLNodeConstIterator i = tree.root()->children().begin(); i != tree.root()->children().end(); ++i) {
try {
VST3Info nfo (**i);
vst3_plugin (module_path, nfo);
vst3_plugin (module_path, path, nfo);
} catch (...) {
error << string_compose (_("Corrupt VST3 cache file '%1' for plugin '%2'"), cache_file, module_path) << endmsg;
DEBUG_TRACE (DEBUG::PluginManager, string_compose ("Cannot load VST3 at '%1'\n", path));

View file

@ -441,7 +441,7 @@ vst3_save_cache_file (std::string const& module_path, XMLNode* root, bool verbos
}
bool
ARDOUR::vst3_scan_and_cache (std::string const& module_path, std::string const& bundle_path, boost::function<void (std::string const&, VST3Info const&)> cb, bool verbose)
ARDOUR::vst3_scan_and_cache (std::string const& module_path, std::string const& bundle_path, boost::function<void (std::string const&, std::string const&, VST3Info const&)> cb, bool verbose)
{
XMLNode* root = new XMLNode ("VST3Cache");
root->set_property ("version", 1);
@ -461,7 +461,7 @@ ARDOUR::vst3_scan_and_cache (std::string const& module_path, std::string const&
return false;
}
for (std::vector<VST3Info>::const_iterator i = nfo.begin(); i != nfo.end(); ++i) {
cb (module_path, *i);
cb (module_path, bundle_path, *i);
root->add_child_nocopy (i->state ());
}

View file

@ -82,7 +82,7 @@ protected:
LogReceiver log_receiver;
static void vst3_plugin (string const& module_path, VST3Info const& i)
static void vst3_plugin (string const&, string const&, VST3Info const& i)
{
info << "Found Plugin: " << i.name << endmsg;
}