Skip to content

Commit

Permalink
Use DISTRHO_PLUGIN_BRAND_ID for extra entropy in VST3
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Feb 24, 2024
1 parent 96c14af commit 419e09e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion distrho/src/DistrhoPluginVST3.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2023 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2024 Filipe Coelho <falktx@falktx.com>
*
* 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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 419e09e

Please sign in to comment.