| 234 | } |
| 235 | |
| 236 | void FixFilenameCase(const char *filename, char *newfile) { |
| 237 | char path[_MAX_PATH], file[_MAX_FNAME], ext[_MAX_EXT]; |
| 238 | ddio_SplitPath(filename, path, file, ext); |
| 239 | |
| 240 | char *p; |
| 241 | |
| 242 | p = file; |
| 243 | while (*p) { |
| 244 | *p = tolower(*p); |
| 245 | p++; |
| 246 | }; |
| 247 | p = ext; |
| 248 | while (*p) { |
| 249 | *p = tolower(*p); |
| 250 | p++; |
| 251 | }; |
| 252 | |
| 253 | strcat(file, ext); |
| 254 | |
| 255 | if (strlen(path) > 0) |
| 256 | ddio_MakePath(newfile, path, file, NULL); |
| 257 | else |
| 258 | strcpy(newfile, file); |
| 259 | } |
| 260 | |
| 261 | // Given a filename, pointer to a char * array and a pointer to an int, |
| 262 | // it will load the string table and fill in the information |
no test coverage detected