Subversion Repositories filter_foundry

Rev

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

Rev 536 Rev 537
Line 199... Line 199...
199
        }
199
        }
200
 
200
 
201
        return e;
201
        return e;
202
}
202
}
203
 
203
 
-
 
204
OSErr saveparams_guf(Handle h, Boolean useparm) {
-
 
205
        // TODO: implement
-
 
206
        return NULL;
-
 
207
}
-
 
208
 
204
OSErr savehandleintofile(Handle h,FILEREF r){
209
OSErr savehandleintofile(Handle h,FILEREF r){
205
        Ptr p;
210
        Ptr p;
206
        FILECOUNT n;
211
        FILECOUNT n;
207
        OSErr e;
212
        OSErr e;
208
 
213
 
Line 212... Line 217...
212
        e = FSWrite(r,&n,p);
217
        e = FSWrite(r,&n,p);
213
        PIUNLOCKHANDLE(h);
218
        PIUNLOCKHANDLE(h);
214
        return e;
219
        return e;
215
}
220
}
216
 
221
 
217
Boolean savefile_afs_pff_picotxt(StandardFileReply *sfr){
222
Boolean savefile_afs_pff_picotxt_guf(StandardFileReply *sfr){
218
        FILEREF r;
223
        FILEREF r;
219
        Handle h;
224
        Handle h;
220
        Boolean res = false;
225
        Boolean res = false;
221
        TCHAR* reasonstr = NULL;
226
        TCHAR* reasonstr = NULL;
222
 
227
 
Line 230... Line 235...
230
                                        res = !(saveparams_picotxt(h,false) || savehandleintofile(h, r));
235
                                        res = !(saveparams_picotxt(h, false) || savehandleintofile(h, r));
231
                                        PIDISPOSEHANDLE(h);
236
                                        PIDISPOSEHANDLE(h);
232
                                }
237
                                }
233
                        }
238
                        }
234
 
239
 
-
 
240
                        if (fileHasExtension(sfr, TEXT(".guf"))) {
-
 
241
                                // GIMP UserFilter file
-
 
242
                                if ((h = PINEWHANDLE(1))) { // don't set initial size to 0, since some hosts (e.g. GIMP/PSPI) are incompatible with that.
-
 
243
                                        res = !(saveparams_guf(h, false) || savehandleintofile(h, r));
-
 
244
                                        PIDISPOSEHANDLE(h);
-
 
245
                                }
-
 
246
                        }
-
 
247
 
235
                        if ((fileHasExtension(sfr, TEXT(".afs"))) || (fileHasExtension(sfr, TEXT(".pff")))) {
248
                        if ((fileHasExtension(sfr, TEXT(".afs"))) || (fileHasExtension(sfr, TEXT(".pff")))) {
236
                                if (fileHasExtension(sfr, TEXT(".pff"))) {
249
                                if (fileHasExtension(sfr, TEXT(".pff"))) {
237
                                        // If it is a Premiere settings file, we need to swap the channels red and blue
250
                                        // If it is a Premiere settings file, we need to swap the channels red and blue
238
                                        // We just swap the pointers!
251
                                        // We just swap the pointers!
239
                                        char* tmp;
252
                                        char* tmp;