Added the serial number block. I hope it works alright.
authorKent Sutherland <ksuther@ithinksw.com>
Fri, 26 Nov 2004 16:04:05 +0000 (16:04 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Fri, 26 Nov 2004 16:04:05 +0000 (16:04 +0000)
Set the reg window to status window level so it doesn't get lost when
regging.

MTShizzleWindow.m
MTeSerialNumber.m
MenuTunes.xcode/project.pbxproj
libValidate.a

index 674d338..11ca0b1 100755 (executable)
@@ -33,6 +33,7 @@ static MTShizzleWindow *_privateSharedWindow = nil;
                         styleMask:styleMask
                         backing:backingType
                         defer:flag]) ) {
+               [self setLevel:NSStatusWindowLevel];
         [self buildWindow];
     }
     return self;
index 5d5de1c..a4882ce 100755 (executable)
@@ -1,6 +1,6 @@
 #import "MTeSerialNumber.h"
 #import "validate.h"
-
+#import <openssl/sha.h>
 
 @interface MTeSerialNumber (Private)
 - (short)validate;
     if ( _serialNumber ) {
 
         BOOL dead = NO;
-        
+        unsigned char *result = SHA1([[_serialNumber stringByAppendingString:@"-h4x0r"] UTF8String], [_serialNumber length] + 5, NULL);
+               if ([[[NSData dataWithBytes:result length:strlen(result)] description] isEqualToString:@"<db7ea71c 2919ff4b 520b6491 8d6813db b70647>"]) {
+                       dead = YES;
+               }
+               
         if ( [_deadSerials count] )  {
             NSEnumerator *deadEnum = [_deadSerials objectEnumerator];
             id            aDeadSerial;
index 5a46077..b7e959c 100755 (executable)
                                7C331F9105A921C30088905B,
                                7C95A0E105A929F400B4F576,
                                7C95A0E205A929F400B4F576,
-                               7C331F9905A921E10088905B,
-                               7C331F9A05A921E10088905B,
                                7C331F9B05A921E10088905B,
                                7C331F9C05A921E10088905B,
-                               7C331F9D05A921E10088905B,
-                               7C331F9E05A921E10088905B,
                                7C331F9F05A921E10088905B,
                                7C331FA005A921E10088905B,
                                7C331FA105A921E10088905B,
+                               7C331F9D05A921E10088905B,
+                               7C331F9A05A921E10088905B,
                                7C331FA205A921E10088905B,
+                               7C331F9E05A921E10088905B,
+                               7C331F9905A921E10088905B,
                                7C331FA305A921E10088905B,
                                7C331FA405A921E10088905B,
                                7C331FB105A922210088905B,
                        settings = {
                        };
                };
+               37CB20230753EE1E00BB0E46 = {
+                       fileRef = 7C331FB305A922210088905B;
+                       isa = PBXBuildFile;
+                       settings = {
+                       };
+               };
 //370
 //371
 //372
                        settings = {
                        };
                };
-               7C331FB905A922210088905B = {
-                       fileRef = 7C331FB305A922210088905B;
-                       isa = PBXBuildFile;
-                       settings = {
-                       };
-               };
                7C331FBA05A922210088905B = {
                        fileRef = 7C331FB405A922210088905B;
                        isa = PBXBuildFile;
                                7C331FAE05A921E10088905B,
                                7C331FAF05A921E10088905B,
                                7C331FB705A922210088905B,
-                               7C331FB905A922210088905B,
                                7C331FBB05A922210088905B,
                                7C95A0E305A929F400B4F576,
+                               37CB20230753EE1E00BB0E46,
                        );
                        isa = PBXSourcesBuildPhase;
                        runOnlyForDeploymentPostprocessing = 0;
index e2b3435..8f2ca1a 100755 (executable)
Binary files a/libValidate.a and b/libValidate.a differ