gfxinit.c
branch0.5
changeset 5393 55e249a41db4
parent 5296 6a4aaa66eed3
child 5408 1ed4ede56477
equal deleted inserted replaced
5392:e5a79cd6bcf4 5393:55e249a41db4
   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;