| 195 | } |
| 196 | |
| 197 | bool GetPluginDesc(juce::PluginDescription& desc, juce::String pluginId) |
| 198 | { |
| 199 | auto types = TheSynth->GetKnownPluginList().getTypes(); |
| 200 | auto cutId = cutOffIdHash(pluginId); |
| 201 | |
| 202 | for (int i = 0; i < types.size(); ++i) |
| 203 | { |
| 204 | if (types[i].createIdentifierString() == pluginId) |
| 205 | { |
| 206 | desc = types[i]; |
| 207 | return true; |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | for (int i = 0; i < types.size(); ++i) |
| 212 | { |
| 213 | if (cutOffIdHash(types[i].createIdentifierString()) == cutId) |
| 214 | { |
| 215 | desc = types[i]; |
| 216 | return true; |
| 217 | } |
| 218 | } |
| 219 | return false; |
| 220 | } |
| 221 | |
| 222 | void GetRecentPlugins(std::vector<PluginDescription>& recentPlugins, int num) |
| 223 | { |
no test coverage detected