From 6ceb56fac5dcabc02db6ebb373073593ddec9a33 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 27 Oct 2018 00:49:47 +0200 Subject: LicenseHandler: Run trial initialiser when license validation fails --- DomeKey/LicenseHandler.h | 1 + DomeKey/LicenseHandler.m | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DomeKey/LicenseHandler.h b/DomeKey/LicenseHandler.h index 90d308e..7056d41 100644 --- a/DomeKey/LicenseHandler.h +++ b/DomeKey/LicenseHandler.h @@ -11,6 +11,7 @@ #import "AquaticPrime.h" #import "XDG.h" +#import "dome_key_map.h" #import "errors.h" @interface LicenseHandler : NSObject diff --git a/DomeKey/LicenseHandler.m b/DomeKey/LicenseHandler.m index ff63ed0..da6d29f 100644 --- a/DomeKey/LicenseHandler.m +++ b/DomeKey/LicenseHandler.m @@ -18,12 +18,11 @@ static NSString * const LICENSE_FILE_NAME = @"license.plist"; if (![self validateLicense]) { [self printInvalidLicenseMessage]; - // TODO: then do trial + do_trial(); } } else { - // run do_trial(); - printf("TODO: do trial\n"); + do_trial(); } } -- cgit v1.2.3