1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Introjucer: made the default plugin ID a random value.

This commit is contained in:
jules 2015-01-27 10:18:20 +00:00
parent 04019091a7
commit 27e225e1fc

View file

@ -203,7 +203,7 @@ public:
setValueIfVoid (getPluginDesc (project), project.getTitle());
setValueIfVoid (getPluginManufacturer (project), "yourcompany");
setValueIfVoid (getPluginManufacturerCode (project), "Manu");
setValueIfVoid (getPluginCode (project), "Plug");
setValueIfVoid (getPluginCode (project), makeValid4CC (project.getProjectUID() + project.getProjectUID()));
setValueIfVoid (getPluginChannelConfigs (project), "{1, 1}, {2, 2}");
setValueIfVoid (getPluginIsSynth (project), false);
setValueIfVoid (getPluginWantsMidiInput (project), false);
@ -304,6 +304,14 @@ public:
exporter.makefileIsDLL = true;
}
static String makeValid4CC (const String& seed)
{
String s (CodeHelpers::makeValidIdentifier (seed, false, true, false) + "xxxx");
return s.substring (0, 1).toUpperCase()
+ s.substring (1, 4).toLowerCase();
}
};
//==============================================================================