ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rtcontrib.c
(Generate patch)

Comparing ray/src/util/rtcontrib.c (file contents):
Revision 1.7 by greg, Tue May 31 03:48:59 2005 UTC vs.
Revision 1.9 by greg, Wed Jun 1 16:11:01 2005 UTC

# Line 68 | Line 68 | struct rtproc {
68  
69                                          /* rtrace command and defaults */
70   char            *rtargv[256] = { "rtrace", "-dj", ".5", "-dr", "3",
71 <                                "-ab", "1", "-ad", "128", };
72 < int  rtargc = 9;
71 >                                "-ab", "1", "-ad", "128", "-lr", "-10", };
72 > int  rtargc = 11;
73                                          /* overriding rtrace options */
74   char            *myrtopts[] = { "-o~~TmWdp", "-h-", "-x", "1", "-y", "0",
75                                  "-dt", "0", "-as", "0", "-aa", "0", NULL };
# Line 202 | Line 202 | main(int argc, char *argv[])
202                                  break;
203                          case 'f':               /* file or i/o format */
204                                  if (!argv[i][2]) {
205 +                                        char    *fpath;
206                                          if (i >= argc-1) break;
207 <                                        fcompile(argv[++i]);
207 >                                        fpath = getpath(argv[++i],
208 >                                                        getrlibpath(), R_OK);
209 >                                        if (fpath == NULL) {
210 >                                                sprintf(errmsg,
211 >                                                        "cannot find file '%s'",
212 >                                                                argv[i]);
213 >                                                error(USER, errmsg);
214 >                                        }
215 >                                        fcompile(fpath);
216                                          continue;
217                                  }
218                                  setformat(argv[i]+2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines