Rev 555 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 555 | Rev 557 | ||
---|---|---|---|
Line 271... | Line 271... | ||
271 | 271 | ||
272 | FFSavingResult savefile_afs_pff_picotxt_guf(StandardFileReply *sfr){ |
272 | FFSavingResult savefile_afs_pff_picotxt_guf(StandardFileReply *sfr){ |
273 | FILEREF r; |
273 | FILEREF r; |
274 | Handle h; |
274 | Handle h; |
275 | Boolean bres = false; |
275 | Boolean bres = false; |
276 | FFSavingResult res = 0; |
276 | FFSavingResult res = SAVING_OK; |
277 | 277 | ||
278 | FSpDelete(&sfr->sfFile); |
278 | FSpDelete(&sfr->sfFile); |
279 | if (FSpCreate(&sfr->sfFile, SIG_SIMPLETEXT, TEXT_FILETYPE, sfr->sfScript) == noErr) { |
279 | if (FSpCreate(&sfr->sfFile, SIG_SIMPLETEXT, TEXT_FILETYPE, sfr->sfScript) == noErr) { |
280 | if (FSpOpenDF(&sfr->sfFile, fsWrPerm, &r) == noErr) { |
280 | if (FSpOpenDF(&sfr->sfFile, fsWrPerm, &r) == noErr) { |
281 | 281 |