Rev 13 | Rev 18 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13 | Rev 15 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | long origsize,newsize; |
54 | long origsize,newsize; |
55 | OSErr e = noErr; |
55 | OSErr e = noErr; |
56 | Str255 title; |
56 | Str255 title; |
57 | 57 | ||
58 | #ifdef MACMACHO |
58 | #ifdef MACMACHO |
- | 59 | FSRef inref,outref; |
|
59 | // work with resources in data fork |
60 | // work with resources in data fork |
60 | if( !(e = FSpMakeFSRef(srcplug,&inref)) |
61 | if( !(e = FSpMakeFSRef(srcplug,&inref)) |
61 | &&!(e = FSOpenResourceFile(&inref,0/*forkNameLength*/,NULL/*forkName*/,fsRdPerm,&srcrn)) |
62 | &&!(e = FSOpenResourceFile(&inref,0/*forkNameLength*/,NULL/*forkName*/,fsRdPerm,&srcrn)) |
62 | &&!(e = FSpMakeFSRef(rsrccopy,&outref)) |
63 | &&!(e = FSpMakeFSRef(rsrccopy,&outref)) |
63 | && (e = FSOpenResourceFile(&outref,0/*forkNameLength*/,NULL/*forkName*/,fsWrPerm,&dstrn)) ) |
64 | && (e = FSOpenResourceFile(&outref,0/*forkNameLength*/,NULL/*forkName*/,fsWrPerm,&dstrn)) ) |