equal
deleted
inserted
replaced
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++) |