mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 05:33:07 +02:00
Remove null pointer supported in initialize()
This commit is contained in:
@@ -322,13 +322,7 @@ bool Vst3Logger::log_request(bool is_host_vst,
|
||||
const YaPluginBase::Initialize& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
message << request.instance_id
|
||||
<< ": IPluginBase::initialize(context = ";
|
||||
if (request.host_context_args) {
|
||||
message << "<FUnknown*>";
|
||||
} else {
|
||||
message << "<nullptr>";
|
||||
}
|
||||
message << ")";
|
||||
<< ": IPluginBase::initialize(context = <FUnknown*>)";
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <bitsery/ext/std_optional.h>
|
||||
#include <pluginterfaces/base/ipluginbase.h>
|
||||
|
||||
#include "../../common.h"
|
||||
@@ -77,12 +76,12 @@ class YaPluginBase : public Steinberg::IPluginBase {
|
||||
|
||||
native_size_t instance_id;
|
||||
|
||||
std::optional<Vst3HostContextProxy::ConstructArgs> host_context_args;
|
||||
Vst3HostContextProxy::ConstructArgs host_context_args;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.ext(host_context_args, bitsery::ext::StdOptional{});
|
||||
s.object(host_context_args);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user