equal
deleted
inserted
replaced
784 sprintf(buf, "%s%s", _path.data_dir, file.filename); |
784 sprintf(buf, "%s%s", _path.data_dir, file.filename); |
785 f = fopen(buf, "rb"); |
785 f = fopen(buf, "rb"); |
786 |
786 |
787 #if !defined(WIN32) |
787 #if !defined(WIN32) |
788 if (f == NULL) { |
788 if (f == NULL) { |
789 byte *s; |
789 char *s; |
790 // make lower case and check again |
790 // make lower case and check again |
791 for (s = buf + strlen(_path.data_dir) - 1; *s != 0; s++) |
791 for (s = buf + strlen(_path.data_dir) - 1; *s != 0; s++) |
792 *s = tolower(*s); |
792 *s = tolower(*s); |
793 f = fopen(buf, "rb"); |
793 f = fopen(buf, "rb"); |
794 } |
794 } |