project_files/HedgewarsMobile/Classes/Appirater.m
branchios-revival
changeset 11148 064a53861759
parent 11137 14f50dde3e8c
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
    80 
    80 
    81         NSTimeInterval secondsSinceLaunch = [[NSDate date] timeIntervalSinceDate:[NSDate dateWithTimeIntervalSince1970:timeInterval]];
    81         NSTimeInterval secondsSinceLaunch = [[NSDate date] timeIntervalSinceDate:[NSDate dateWithTimeIntervalSince1970:timeInterval]];
    82         double secondsUntilPrompt = 60 * 60 * 24 * DAYS_UNTIL_PROMPT;
    82         double secondsUntilPrompt = 60 * 60 * 24 * DAYS_UNTIL_PROMPT;
    83 
    83 
    84         // get the launch count
    84         // get the launch count
    85         int launchCount = [userDefaults integerForKey:kAppiraterLaunchCount];
    85         NSInteger launchCount = [userDefaults integerForKey:kAppiraterLaunchCount];
    86         launchCount++;
    86         launchCount++;
    87         [userDefaults setInteger:launchCount forKey:kAppiraterLaunchCount];
    87         [userDefaults setInteger:launchCount forKey:kAppiraterLaunchCount];
    88         if (APPIRATER_DEBUG)
    88         if (APPIRATER_DEBUG)
    89             NSLog(@"APPIRATER Launch count: %d", launchCount);
    89             NSLog(@"APPIRATER Launch count: %ld", (long)launchCount);
    90 
    90 
    91         // have they previously declined to rate this version of the app?
    91         // have they previously declined to rate this version of the app?
    92         BOOL declinedToRate = [userDefaults boolForKey:kAppiraterDeclinedToRate];
    92         BOOL declinedToRate = [userDefaults boolForKey:kAppiraterDeclinedToRate];
    93 
    93 
    94         // have they already rated the app?
    94         // have they already rated the app?