From: <sv...@op...> - 2024-08-26 17:46:51
|
Author: sagamusix Date: Mon Aug 26 19:46:43 2024 New Revision: 21525 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21525 Log: [Fix] VST: Shell plugin instrument flag was not updated if the shell itself didn't report to be an instrument plugin (e.g. Waves instruments). Modified: trunk/OpenMPT/mptrack/Vstplug.cpp Modified: trunk/OpenMPT/mptrack/Vstplug.cpp ============================================================================== --- trunk/OpenMPT/mptrack/Vstplug.cpp Sun Aug 25 23:41:32 2024 (r21524) +++ trunk/OpenMPT/mptrack/Vstplug.cpp Mon Aug 26 19:46:43 2024 (r21525) @@ -317,7 +317,8 @@ vendor.back() = '\0'; plugin.vendor = mpt::ToCString(mpt::Charset::Locale, vendor.data()); - if(CVstPlugin::IsInstrument(*loadResult.effect)) + plugin.isInstrument = CVstPlugin::IsInstrument(*loadResult.effect); + if(plugin.isInstrument) plugin.category = PluginCategory::Synth; else plugin.category = static_cast<PluginCategory>(DispatchSEH(maskCrashes, *loadResult.effect, Vst::effGetPlugCategory, 0, 0, nullptr, 0.0f, exception)); |