| 470 |  | } | 
| 471 |  | switch (XMLfile[0]) {           /* avoid RAYPATH search */ | 
| 472 |  | case '.': | 
| 473 | + | case '~': | 
| 474 |  | CASEDIRSEP: | 
| 475 |  | curdir = ""; | 
| 476 |  | break; | 
| 752 |  | } else { | 
| 753 |  | FILE    *fp[4]; | 
| 754 |  | if (argc > 5) { | 
| 755 | < | fprintf(stderr, "%s: too many input files\n", progname); | 
| 755 | > | fprintf(stderr, "%s: more than 4 hemispheres!\n", progname); | 
| 756 |  | return(1); | 
| 757 |  | } | 
| 758 |  | for (n = 1; n < argc; n++) { | 
| 788 |  | put_scale(); | 
| 789 |  | if (inpXML && myBSDF.mgf) | 
| 790 |  | convert_mgf(myBSDF.mgf); | 
| 791 | < | if (!put_BSDFs()) | 
| 791 | > | if (!put_BSDFs())               /* most of the output happens here */ | 
| 792 |  | return(1); | 
| 793 |  | cleanup_tmp(); | 
| 794 |  | return(0); |