diff -r 60e198893a41 -r 9a0c469a251c fileio.c --- a/fileio.c Mon Dec 06 00:03:26 2004 +0000 +++ b/fileio.c Tue Dec 07 17:16:57 2004 +0000 @@ -110,6 +110,16 @@ for(s=buf + strlen(_path.data_dir) - 1; *s != 0; s++) *s = tolower(*s); f = fopen(buf, "rb"); + +#if defined SECOND_DATA_DIR + // tries in the 2nd data directory + if (f == NULL) { + sprintf(buf, "%s%s", _path.second_data_dir, filename); + for(s=buf + strlen(_path.second_data_dir) - 1; *s != 0; s++) + *s = tolower(*s); + f = fopen(buf, "rb"); + } +#endif } #endif