X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/9c8f6e1b9b0b947d898a3d9bae3acb3999879791..8ae00032eb40faf1db88f878885d716a1820406c:/MTBlingController.m diff --git a/MTBlingController.m b/MTBlingController.m index d270412..fb1a66b 100755 --- a/MTBlingController.m +++ b/MTBlingController.m @@ -82,7 +82,7 @@ name:o extra:nil publisher:@"04611"] autorelease]; - if ( [s isValid] == ITeSerialNumberIsValid && ( [[s infoDictionary] objectForKey:@"appIdentifier"] == @"MT" ) ) { + if ( ([s isValid] == ITeSerialNumberIsValid) && ( [[[s infoDictionary] objectForKey:@"appIdentifier"] isEqualToString:@"MT"] ) ) { NSFileManager *fm = [NSFileManager defaultManager]; @@ -124,7 +124,7 @@ MTeSerialNumber *k = [[[MTeSerialNumber alloc] initWithContentsOfFile:p extra:@"" publisher:@"04611"] autorelease]; - if ( k && [k isValid] == ITeSerialNumberIsValid && ( [[k infoDictionary] objectForKey:@"appIdentifier"] == @"MT" )) { + if ( k && ([k isValid] == ITeSerialNumberIsValid) && ( [[[k infoDictionary] objectForKey:@"appIdentifier"] isEqualToString:@"MT"] )) { return 7465; } else { [[NSFileManager defaultManager] removeFileAtPath:p handler:nil]; @@ -135,7 +135,13 @@ - (int)checkDone { - return checkDone; + if ( ! (checkDone == 2475) ) { + if ( ! ([self checkKeyFile] == 7465) ) { + return 0 + } else { + return 2475; + } + } } - (void)finishValidSheet:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo