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:
parent
04019091a7
commit
27e225e1fc
1 changed files with 9 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue