src/gfxinit.c
changeset 5482 0528f1dfb732
parent 5475 2e6990a8c7c4
child 5576 b19c640dfc37
equal deleted inserted replaced
5481:c194404a46b0 5482:0528f1dfb732
   116 
   116 
   117 #if !defined(WIN32)
   117 #if !defined(WIN32)
   118 	if (f == NULL) {
   118 	if (f == NULL) {
   119 		strtolower(buf + strlen(_paths.data_dir) - 1);
   119 		strtolower(buf + strlen(_paths.data_dir) - 1);
   120 		f = fopen(buf, "rb");
   120 		f = fopen(buf, "rb");
       
   121 	}
       
   122 #endif
       
   123 
       
   124 #if defined SECOND_DATA_DIR
       
   125 	/* If we failed to find the file in the first data directory, we will try the other one */
       
   126 
       
   127 	if (f == NULL) {
       
   128 		snprintf(buf, lengthof(buf), "%s%s", _paths.second_data_dir, file.filename);
       
   129 		f = fopen(buf, "rb");
       
   130 
       
   131 		if (f == NULL) {
       
   132 			strtolower(buf + strlen(_paths.second_data_dir) - 1);
       
   133 			f = fopen(buf, "rb");
       
   134 		}
   121 	}
   135 	}
   122 #endif
   136 #endif
   123 
   137 
   124 	if (f != NULL) {
   138 	if (f != NULL) {
   125 		md5_state_t filemd5state;
   139 		md5_state_t filemd5state;