host-fst icon indicating copy to clipboard operation
host-fst copied to clipboard

GetRefInfo and GetRefNum do not work correctly with resource forks

Open sheumann opened this issue 1 year ago • 1 comments

The resourceNumber field returned by GetRefInfo should indicate if the resource fork or data fork of the file was opened, but under the Host FST it is always 0 (indicating the data fork), even if the resource fork was actually opened.

Also, GetRefNum cannot successfully look up the reference number of an open resource fork (using a resNum value of 1).

To fix both these problems, bit 14 of the FCR's access field should be set to indicate a resource fork.

sheumann avatar Mar 27 '24 01:03 sheumann

Nice catch. Ample mame (today or tomorrow) will correctly handle it on the host side. GS+ will probably never be updated but I can set it on the fst side as well.

ksherlock avatar Mar 27 '24 12:03 ksherlock