diff --git a/CHANGELOG.md b/CHANGELOG.md index 76888723..d6ed77f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -92,6 +92,9 @@ TODO: Add an updated screenshot with some fancy VST3-only plugins to the readme host are now periodically synchronized with those of the host's audio threads. +- When using `yabridge.toml` config files, the matched section or glob pattern + is now also printed next to the path to the file to make it a bit easier to + see where settings are being set from. - The architecture document has been updated for the VST3 support and it has been rewritten to talk more about the more interesting bits of yabridge's implementation. diff --git a/src/plugin/bridges/common.h b/src/plugin/bridges/common.h index b0fa8706..c201e2b0 100644 --- a/src/plugin/bridges/common.h +++ b/src/plugin/bridges/common.h @@ -146,9 +146,14 @@ class PluginBridge { // settings in use. Printing the matched glob pattern could also be // useful but it'll be very noisy and it's likely going to be clear from // the shown values anyways. - init_msg << "config from: '" - << config.matched_file.value_or("").string() << "'" - << std::endl; + init_msg << "config from: '"; + if (config.matched_file && config.matched_pattern) { + init_msg << config.matched_file->string() << ", section \"" + << *config.matched_pattern << "\""; + } else { + init_msg << ""; + } + init_msg << "'" << std::endl; init_msg << "hosting mode: '"; if (config.group) {