File VST3-Host-Set-plugin-version-when-loading-from-moduleinfo-json.patch of Package bespokesynth
From e3b14702a066e6ee3100f057de6f47673d629e0f Mon Sep 17 00:00:00 2001
From: reuk <reuk@users.noreply.github.com>
Date: Mon, 2 Oct 2023 14:08:31 +0100
Subject: [PATCH] VST3 Host: Set plugin version when loading from
moduleinfo.json
---
.../format_types/juce_VST3PluginFormat.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp
index 939d22fb5b2..bb4eb7e02cf 100644
--- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp
+++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp
@@ -216,12 +216,13 @@ static std::vector<PluginDescription> createPluginDescriptions (const File& plug
description.lastFileModTime = pluginFile.getLastModificationTime();
description.lastInfoUpdateTime = Time::getCurrentTime();
description.manufacturerName = CharPointer_UTF8 (info.factoryInfo.vendor.c_str());
- description.name = CharPointer_UTF8 (info.name.c_str());
- description.descriptiveName = CharPointer_UTF8 (info.name.c_str());
+ description.name = CharPointer_UTF8 (c.name.c_str());
+ description.descriptiveName = CharPointer_UTF8 (c.name.c_str());
description.pluginFormatName = "VST3";
description.numInputChannels = 0;
description.numOutputChannels = 0;
description.hasARAExtension = araMainFactoryClassNames.find (description.name) != araMainFactoryClassNames.end();
+ description.version = CharPointer_UTF8 (c.version.c_str());
const auto uid = VST3::UID::fromString (c.cid);