Ejemplo n.º 1
0
void  roadmap_config_initialize (void) {

    RoadMapConfig *file;


   for (file = RoadMapConfigFiles; file->name != NULL; ++file) {

      roadmap_config_reload (file->name);
   }
}
Ejemplo n.º 2
0
void roadmap_skin_set_subskin (const char *sub_skin) {
   const char *base_path = roadmap_path_preferred ("skin");
   char path[1024];
   char *skin_path = NULL;
   char *subskin_path;
   const char *cursor;
   char *subskin_path2 = NULL;
   CurrentSubSkin = sub_skin;

   skin_path = roadmap_path_join (base_path, CurrentSkin);
   subskin_path = roadmap_path_join (skin_path, CurrentSubSkin);
//   offset = strlen(path);

   if (!strcmp(CurrentSubSkin,"day")){
	   if (strlen(get_map_schema())> 0) {
		  subskin_path2 = roadmap_path_join (subskin_path, get_map_schema());

		  snprintf (path, sizeof(path), "%s", subskin_path2);
		  roadmap_path_free (subskin_path2);
	   }
	   else {
		      snprintf (path, sizeof(path), "%s", subskin_path);
	   }
   }
   else{
      snprintf (path, sizeof(path), "%s", subskin_path);
   }

   for ( cursor = roadmap_path_first ("skin");
                  cursor != NULL;
			  cursor = roadmap_path_next ("skin", cursor))
   {
	 if ( !((strstr(cursor,"day") || strstr(cursor,"night")))){
	   strcat(path, ",");
		strcat(path, cursor);

	 }
   }

   roadmap_path_set ("skin", path);

   roadmap_path_free (subskin_path);
   roadmap_path_free (skin_path);

   roadmap_config_reload ("schema");
   notify_listeners ();

   roadmap_screen_redraw ();

}
Ejemplo n.º 3
0
void  roadmap_config_initialize (void) {

    RoadMapConfig *file;


	//printf("files\n");
	//for (file = RoadMapConfigFiles; file->name != NULL; ++file) {
		//printf("file: %s\n", file->name);
	//}

   for (file = RoadMapConfigFiles; file->name != NULL; ++file) {

	   //printf("before file: %s\n", file->name);
      roadmap_config_reload (file->name);
	  //printf("after file: %s\n", file->name);
   }

}
Ejemplo n.º 4
0
void roadmap_skin_set_subskin (const char *sub_skin) {
   const char *base_path = roadmap_path_preferred ("skin");
   char path[255];
   char *skin_path;
   char *subskin_path;

   CurrentSubSkin = sub_skin;

   skin_path = roadmap_path_join (base_path, CurrentSkin);
   subskin_path = roadmap_path_join (skin_path, CurrentSubSkin);

   snprintf (path, sizeof(path), "%s,%s", subskin_path, skin_path);

   roadmap_path_set ("skin", path);

   roadmap_path_free (subskin_path);
   roadmap_path_free (skin_path);

   roadmap_config_reload ("schema");
   notify_listeners ();

   roadmap_screen_redraw ();
}