src/gfxinit.c
branchcustombridgeheads
changeset 5645 72ebd9e4cd64
parent 5643 3778051e8095
child 5648 1608018c5ff2
equal deleted inserted replaced
5644:ec96a5a38023 5645:72ebd9e4cd64
   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;