Anyone Used AquaticPrime to protect their Mac game

Miscellaneous Forums/MacOS X Discussion/Anyone Used AquaticPrime to protect their Mac game

------------------------------------------------------------------------------------
#import <Cocoa/Cocoa.h>
#import "AquaticPrime.h"

#include <brl.mod/blitz.mod/blitz.h>
#include <brl.mod/maxgui.mod/maxgui.h>

/*- (NSString*)checkLicense:(NSString*)licensePath
*/





int checkkey(BBString *licensePath)
{
// Paste obfuscated public key here
NSMutableString *key = [NSMutableString string];
/* APPEND YOUR KEY HERE */

// Instantiate AquaticPrime
AquaticPrime *licenseValidator = [AquaticPrime aquaticPrimeWithKey:key];

// Get the dictionary from the license file
// If the license is invalid, we get nil back instead of a dictionary
NSDictionary *licenseDictionary = [licenseValidator dictionaryForLicenseFile:[NSString stringWithCString:bbStringToCString(licensePath)]];

if (licenseDictionary == nil)
{
printf("invalid key");
return 1;
}
else
{
printf("valid key");
// return [licenseDictionary objectForKey:@"Name"]
return 0;
}
}
------------------------------------------------------------------------------------

... and then in your bmax program...

------------------------------------------------------------------------------------
SuperStrict
?MacOS
Import "libAquaticPrime.a"
Import "AquaticPrime.m"
Import "openssl/libcrypto.a"
Import "openssl/libssl.a"
Extern
Function checkkey:Int(licensePath:String)
End Extern
?
------------------------------------------------------------------------------------

... you may then just call the checkkey() from bmax...

PLS

PS: sorry I took so long but I have been rather busy and far away from game coding... just now getting back to it and thinking about coding the next game.