| 228 | } |
| 229 | |
| 230 | RegistryPaths VSTEffectBase::GetFactoryPresets() const |
| 231 | { |
| 232 | RegistryPaths progs; |
| 233 | |
| 234 | // Some plugins, like Guitar Rig 5, only report 128 programs while they have hundreds. While |
| 235 | // I was able to come up with a hack in the Guitar Rig case to gather all of the program names |
| 236 | // it would not let me set a program outside of the first 128. |
| 237 | if (mVstVersion >= 2) |
| 238 | { |
| 239 | for (int i = 0; i < mAEffect->numPrograms; i++) |
| 240 | { |
| 241 | progs.push_back(GetString(effGetProgramNameIndexed, i)); |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | return progs; |
| 246 | } |
| 247 | |
| 248 | OptionalMessage |
| 249 | VSTEffectBase::LoadFactoryPreset(int id, EffectSettings& settings) const |