- Timestamp:
- Oct 2, 2014, 11:03:19 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/ConfigInit.c
r37449 r37453 5 5 char *config, *file; 6 6 char CatdirPhotcodeFile[256]; 7 struct stat filestat;8 int status;9 7 10 8 /*** load configuration info ***/ … … 30 28 ScanConfig(config, "CATMODE", "%s", 0, CATMODE); 31 29 ScanConfig(config, "CATFORMAT", "%s", 0, CATFORMAT); 30 GetConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile); 32 31 33 32 sprintf (ImageCat, "%s/Images.dat", CATDIR); … … 39 38 if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR"); 40 39 41 // check for existence of CATDIR42 status = stat (CATDIR, &filestat);43 if (status == -1) {44 fprintf (stderr, "directory %s does not exist, giving up\n", CATDIR);45 exit (1);46 }47 48 40 /* update master photcode table if not defined */ 49 41 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 50 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) {42 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) { 51 43 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 52 44 exit (1);
Note:
See TracChangeset
for help on using the changeset viewer.
