From 419e09edda65cd324bac1b5eb1ecf8bebebedb5f Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 24 Feb 2024 21:19:25 +0100 Subject: [PATCH] Use DISTRHO_PLUGIN_BRAND_ID for extra entropy in VST3 Signed-off-by: falkTX --- distrho/src/DistrhoPluginVST3.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp index fb12c186..984294dc 100644 --- a/distrho/src/DistrhoPluginVST3.cpp +++ b/distrho/src/DistrhoPluginVST3.cpp @@ -1,6 +1,6 @@ /* * DISTRHO Plugin Framework (DPF) - * Copyright (C) 2012-2023 Filipe Coelho + * Copyright (C) 2012-2024 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -4968,6 +4968,11 @@ bool ENTRYFNNAME(ENTRYFNNAMEARGS) dpf_tuid_class[2] = dpf_tuid_component[2] = dpf_tuid_controller[2] = dpf_tuid_processor[2] = dpf_tuid_view[2] = sPlugin->getUniqueId(); + + #ifdef DISTRHO_PLUGIN_BRAND_ID + dpf_tuid_class[3] = dpf_tuid_component[3] = dpf_tuid_controller[3] + = dpf_tuid_processor[3] = dpf_tuid_view[3] = d_cconst(STRINGIFY(DISTRHO_PLUGIN_BRAND_ID)); + #endif } return true;