Example #1
0
void roadmap_alerter_initialize(void) {

    //minimum speed to check alerts
    roadmap_config_declare
    ("preferences", &MinSpeedToAlertCfg, "10", NULL);

    // Enable/Diable audio alerts
    roadmap_config_declare_enumeration
    ("preferences", &AlertsAudioEnabledCfg, NULL, "yes", "no", NULL);

    // Enable/Diable alerts
    roadmap_config_declare_enumeration
    ("preferences", &AlertsEnabledCfg, NULL, "yes", "no", NULL);

    RoadMapAlertProvidors.count = 0;

    alert_should_be_visible = FALSE;
    alert_active = FALSE;
    the_active_alert.active_alert_id = -1;
    the_active_alert.alert_providor = 	-1;

    roadmap_alerter_register(&RoadmapAlertProvidor);


}
Example #2
0
void RealtimeBonus_Init (void) {
   int i;
   static BOOL registered_provider = FALSE;
   if(!registered_provider){
   		registered_provider = TRUE;
   		roadmap_alerter_register (&RoadmapRealTimeMapbonusnsProvider);
   }
   gBonusTable.iCount = 0;
   for (i = 0; i < MAX_ADD_ONS; i++) {
      gBonusTable.bonus[i] = NULL;
   }

   roadmap_config_declare ("preferences", &RoadMapConfigCustomBonusRadius, "30", NULL);

   roadmap_config_declare ("user", &RoadMapConfigCustomBonusLastID, "0", NULL);

   roadmap_config_declare_enumeration ("preferences", &RoadMapConfigCustomBonusFeatureEnabled, NULL, "yes",
                  "no", NULL);


}