Subversion Repositories filter_foundry

Rev

Rev 185 | Rev 190 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 185 Rev 188
Line 135... Line 135...
135
                                        if (strlen(tempdir) > 0) strcat(tempdir, "/");
135
                                        if (strlen(tempdir) > 0) strcat(tempdir, "/");
136
                                        #endif
136
                                        #endif
137
                                        sprintf(outfilename, "%sFilterFoundry.afs", tempdir);
137
                                        sprintf(outfilename, "%sFilterFoundry.afs", tempdir);
138
 
138
 
139
                                        myc2pstrcpy(sfr.sfFile.name, outfilename);
139
                                        myc2pstrcpy(sfr.sfFile.name, outfilename);
-
 
140
                                        #ifdef WIN_ENV
140
                                        sfr.nFileExtension = (WORD)(strlen(outfilename) - strlen(".afs"));
141
                                        sfr.nFileExtension = (WORD)(strlen(outfilename) - strlen(".afs"));
-
 
142
                                        #endif
141
                                        sfr.sfScript = 0; // FIXME: is that ok?
143
                                        sfr.sfScript = 0; // FIXME: is that ok?
142
                                        savefile(&sfr);
144
                                        savefile(&sfr);
143
                                }
145
                                }
144
 
146
 
145
                                /* update stored parameters from new user settings */
147
                                /* update stored parameters from new user settings */
Line 199... Line 201...
199
                if (strlen(tempdir) > 0) strcat(tempdir, "/");
201
                if (strlen(tempdir) > 0) strcat(tempdir, "/");
200
                #endif
202
                #endif
201
                sprintf(outfilename, "%sFilterFoundry.afs", tempdir);
203
                sprintf(outfilename, "%sFilterFoundry.afs", tempdir);
202
 
204
 
203
                myc2pstrcpy(sfr.sfFile.name, outfilename);
205
                myc2pstrcpy(sfr.sfFile.name, outfilename);
-
 
206
                #ifdef WIN_ENV
204
                sfr.nFileExtension = (WORD)(strlen(outfilename) - strlen(".afs"));
207
                sfr.nFileExtension = (WORD)(strlen(outfilename) - strlen(".afs"));
-
 
208
                #endif
205
                sfr.sfScript = 0; // FIXME: is that ok?
209
                sfr.sfScript = 0; // FIXME: is that ok?
206
                if (loadfile(&sfr, &reason)) return true;
210
                if (loadfile(&sfr, &reason)) return true;
207
        }
211
        }
208
 
212
 
209
        if( (f = !(params && readparams(params,false,&reasonstr))) ){
213
        if( (f = !(params && readparams(params,false,&reasonstr))) ){