Actually update the supported interface status

With this Waves VST3 plugins now work. But was it worth it?
This commit is contained in:
Robbert van der Helm
2021-07-05 16:48:24 +02:00
parent 4e4bbe1ba4
commit a06d0bc515
3 changed files with 60 additions and 2 deletions
@@ -1057,7 +1057,7 @@ tresult PLUGIN_API Vst3PluginProxyImpl::initialize(FUnknown* context) {
host_application = host_context;
plug_interface_support = host_context;
const InitializeResponse response =
InitializeResponse response =
bridge.send_message(Vst3PluginProxy::Initialize{
.instance_id = instance_id(),
.host_context_args = Vst3HostContextProxy::ConstructArgs(
@@ -1066,7 +1066,8 @@ tresult PLUGIN_API Vst3PluginProxyImpl::initialize(FUnknown* context) {
// HACK: For some reason, Waves plugins will only allow querying the
// `IEditController` interface after this point, so we need to
// update the list of interfaces we support for this object.
arguments = response.updated_plugin_interfaces;
update_supported_interfaces(
std::move(response.updated_plugin_interfaces));
return response.result;
} else {