version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_anim_c = | | * static char *rcsid_anim_c = |
* "$Id: anim.c,v 1.17 2005/08/12 13:46:34 ryo_saeba Exp $"; | | * "$Id: anim.c,v 1.18 2005/09/04 16:58:12 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
sprintf(buf,"%s/animations", settings.datadir); | | sprintf(buf,"%s/animations", settings.datadir); |
LOG(llevDebug,"Reading animations from %s...", buf); | | LOG(llevDebug,"Reading animations from %s...", buf); |
if ((fp=fopen(buf,"r")) ==NULL) { | | if ((fp=fopen(buf,"r")) ==NULL) { |
perror("Can not open animations file\n"); | | LOG(llevError, "Cannot open animations file %s: %s\n", buf, strerror_local(errno)); |
fprintf(stderr,"Filename=%s\n", buf); | | |
exit(-1); | | exit(-1); |
} | | } |
while (fgets(buf, MAX_BUF-1, fp)!=NULL) { | | while (fgets(buf, MAX_BUF-1, fp)!=NULL) { |