mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST2: Added warnings if the plug-in version number cannot be displayed by Cubase's version encoding
This commit is contained in:
parent
671f3eaf94
commit
191b91503a
1 changed files with 27 additions and 0 deletions
|
|
@ -91,3 +91,30 @@
|
|||
#undef JucePlugin_Build_AAX
|
||||
#define JucePlugin_Build_AAX 0
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
#if JucePlugin_Build_VST
|
||||
|
||||
#if JucePlugin_VersionCode < 0x010000 // Major < 0
|
||||
|
||||
#if (JucePlugin_VersionCode & 0x00FF00) > (9 * 0x100) // check if Minor number exceeeds 9
|
||||
#warning When version has "major" = 0, VST2 has trouble displaying "minor" exceeding 9
|
||||
#endif
|
||||
|
||||
#if (JucePlugin_VersionCode & 0xFF) > 9 // check if Bugfix number exceeeds 9
|
||||
#warning When version has "major" = 0, VST2 has trouble displaying "bugfix" exceeding 9
|
||||
#endif
|
||||
|
||||
#elif JucePlugin_VersionCode >= 0x650000 // Major >= 101
|
||||
|
||||
#if (JucePlugin_VersionCode & 0x00FF00) > (99 * 0x100) // check if Minor number exceeeds 99
|
||||
#warning When version has "major" > 100, VST2 has trouble displaying "minor" exceeding 99
|
||||
#endif
|
||||
|
||||
#if (JucePlugin_VersionCode & 0xFF) > 99 // check if Bugfix number exceeeds 99
|
||||
#warning When version has "major" > 100, VST2 has trouble displaying "bugfix" exceeding 99
|
||||
#endif
|
||||
|
||||
#endif // JucePlugin_VersionCode
|
||||
|
||||
#endif // JucePlugin_Build_VST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue