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