Pass plugin path around instead of redetecting

This is now set only once at the top level. This is needed for the
chainloading to work because we'll need to set the path when we create
the bridge.
This commit is contained in:
Robbert van der Helm
2022-04-16 14:21:24 +02:00
parent 1fec4c8860
commit fde90d7bc3
11 changed files with 78 additions and 36 deletions
+2 -1
View File
@@ -24,9 +24,10 @@
using namespace std::literals::string_literals;
Vst3PluginBridge::Vst3PluginBridge()
Vst3PluginBridge::Vst3PluginBridge(const ghc::filesystem::path& plugin_path)
: PluginBridge(
PluginType::vst3,
plugin_path,
[](asio::io_context& io_context, const PluginInfo& info) {
return Vst3Sockets<std::jthread>(
io_context,