mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Print CIDs in IPluginBase::initialize()
This commit is contained in:
@@ -34,14 +34,14 @@ void Vst3Logger::log_unknown_interface(
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Vst3Logger::log_request(bool is_host_vst,
|
void Vst3Logger::log_request(bool is_host_vst,
|
||||||
const Vst3PluginProxy::Construct&) {
|
const Vst3PluginProxy::Construct& args) {
|
||||||
log_request_base(is_host_vst, [&](auto& message) {
|
log_request_base(is_host_vst, [&](auto& message) {
|
||||||
// TODO: Log the CID on verbosity level 2, and then also report all CIDs
|
|
||||||
// in the plugin factory
|
|
||||||
// TODO: When adding the enum class for instantiating different types,
|
// TODO: When adding the enum class for instantiating different types,
|
||||||
// make sure to reflect those in the constructor and destructor
|
// make sure to reflect those in the constructor and destructor
|
||||||
// logging
|
// logging
|
||||||
message << "IPluginFactory::createComponent(cid = ..., _iid = "
|
message << "IPluginFactory::createComponent(cid = "
|
||||||
|
<< format_uid(Steinberg::FUID::fromTUID(args.cid.data()))
|
||||||
|
<< ", _iid = "
|
||||||
"IComponent::iid, "
|
"IComponent::iid, "
|
||||||
"&obj)";
|
"&obj)";
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -27,11 +27,11 @@ std::string format_uid(const Steinberg::FUID& uid) {
|
|||||||
uid.to4Int(l1, l2, l3, l4);
|
uid.to4Int(l1, l2, l3, l4);
|
||||||
|
|
||||||
std::ostringstream formatted_uid;
|
std::ostringstream formatted_uid;
|
||||||
formatted_uid << std::hex << std::uppercase << "(0x" << std::setfill('0')
|
formatted_uid << std::hex << std::uppercase << "{0x" << std::setfill('0')
|
||||||
<< std::setw(8) << l1 << ", 0x" << std::setfill('0')
|
<< std::setw(8) << l1 << ", 0x" << std::setfill('0')
|
||||||
<< std::setw(8) << l2 << ", 0x" << std::setfill('0')
|
<< std::setw(8) << l2 << ", 0x" << std::setfill('0')
|
||||||
<< std::setw(8) << l3 << ", 0x" << std::setfill('0')
|
<< std::setw(8) << l3 << ", 0x" << std::setfill('0')
|
||||||
<< std::setw(8) << l4 << ")";
|
<< std::setw(8) << l4 << "}";
|
||||||
|
|
||||||
return formatted_uid.str();
|
return formatted_uid.str();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user