fileio.c
changeset 915 d845fe7cf6f2
parent 810 a1494b19bd2a
child 1036 8a82ce28b724
equal deleted inserted replaced
914:4359607898f7 915:d845fe7cf6f2
   108 		char *s;
   108 		char *s;
   109 		// Make lower case and try again
   109 		// Make lower case and try again
   110 		for(s=buf + strlen(_path.data_dir) - 1; *s != 0; s++)
   110 		for(s=buf + strlen(_path.data_dir) - 1; *s != 0; s++)
   111 			*s = tolower(*s);
   111 			*s = tolower(*s);
   112 		f = fopen(buf, "rb");
   112 		f = fopen(buf, "rb");
   113 		
   113 
   114 #if defined SECOND_DATA_DIR
   114 #if defined SECOND_DATA_DIR
   115 	// tries in the 2nd data directory
   115 	// tries in the 2nd data directory
   116 		if (f == NULL) {
   116 		if (f == NULL) {
   117 			sprintf(buf, "%s%s", _path.second_data_dir, filename);
   117 			sprintf(buf, "%s%s", _path.second_data_dir, filename);
   118 			for(s=buf + strlen(_path.second_data_dir) - 1; *s != 0; s++)
   118 			for(s=buf + strlen(_path.second_data_dir) - 1; *s != 0; s++)