Show a notification on version mismatch

Between the plugin and the Wine plugin host application.
This commit is contained in:
Robbert van der Helm
2021-07-13 22:14:31 +02:00
parent 4013aea63a
commit 5fc7acccd1
5 changed files with 44 additions and 5 deletions
+5 -2
View File
@@ -24,6 +24,9 @@
#include "vst3-impls/host-context-proxy.h"
#include "vst3-impls/plug-frame-proxy.h"
// Generated inside of the build directory
#include <version.h>
// NOLINTNEXTLINE(bugprone-suspicious-include)
#include <public.sdk/source/vst/hosting/module_win32.cpp>
@@ -100,8 +103,8 @@ Vst3Bridge::Vst3Bridge(MainContext& main_context,
// Fetch this instance's configuration from the plugin to finish the setup
// process
config = sockets.vst_host_callback.send_message(WantsConfiguration{},
std::nullopt);
config = sockets.vst_host_callback.send_message(
WantsConfiguration{.host_version = yabridge_git_version}, std::nullopt);
// Allow this plugin to configure the main context's tick rate
main_context.update_timer_interval(config.event_loop_interval());