From 1d92f9c9d00007d545a230d1dce4239418c7880f Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 9 Aug 2018 09:29:20 +0100 Subject: [PATCH] Added a tooltip warning against using 4 segment version numbers for AU and AUv3 plug-ins --- extras/Projucer/Source/Project/jucer_Project.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extras/Projucer/Source/Project/jucer_Project.cpp b/extras/Projucer/Source/Project/jucer_Project.cpp index e78a39ef94..9f3ba25fc9 100644 --- a/extras/Projucer/Source/Project/jucer_Project.cpp +++ b/extras/Projucer/Source/Project/jucer_Project.cpp @@ -909,7 +909,8 @@ void Project::createPropertyEditors (PropertyListBuilder& props) "The name of the project."); props.add (new TextPropertyComponent (versionValue, "Project Version", 16, false), - "The project's version number, This should be in the format major.minor.point[.point]"); + "The project's version number. This should be in the format major.minor.point[.point] where you should omit the final " + "(optional) [.point] if you are targetting AU and AUv3 plug-ins as they only support three number versions."); props.add (new TextPropertyComponent (companyNameValue, "Company Name", 256, false), "Your company name, which will be added to the properties of the binary where possible"); @@ -1106,7 +1107,7 @@ int Project::getVersionAsHexInteger() const + (segments[1].getIntValue() << 8) + segments[2].getIntValue(); - if (segments.size() >= 4) + if (segments.size() > 3) value = (value << 8) + segments[3].getIntValue(); return value;