Update Secret Sauce functionality.

CQTexperiment
Christopher Snowhill 2017-12-27 18:57:41 -08:00
parent 13df28fef4
commit 3647ff6e02
3 changed files with 4 additions and 3 deletions

View File

@ -202,7 +202,7 @@ static OSType getOSType(const char * in_)
componentSubType = getOSType(cplugin);
componentManufacturer = getOSType(cplugin + 4);
if (componentManufacturer == 'rolD' && componentSubType == 'Sc55')
if ((componentManufacturer == 'rolD' || componentManufacturer == 'RoCl') && componentSubType == 'Sc55')
{
SCPlayer * scplayer = new SCPlayer;

View File

@ -41,7 +41,8 @@
- (IBAction)setMidiPlugin:(id)sender
{
if ([[[NSUserDefaults standardUserDefaults] stringForKey:@"midi.plugin"] isEqualToString:@"Sc55rolD"])
NSString * plugin = [[NSUserDefaults standardUserDefaults] stringForKey:@"midi.plugin"];
if ([plugin isEqualToString:@"Sc55rolD"] || [plugin isEqualToString:@"Sc55RoCl"])
[midiFlavorControl setEnabled:YES];
else
[midiFlavorControl setEnabled:NO];

View File

@ -17,6 +17,6 @@
- (id)transformedValue:(id)value {
if (value == nil) return nil;
return [NSNumber numberWithBool:[value isEqualToString:@"Sc55rolD"]];
return [NSNumber numberWithBool:([value isEqualToString:@"Sc55rolD"] || [value isEqualToString:@"Sc55RoCl"])];
}
@end