host-fst
host-fst copied to clipboard
GetRefInfo and GetRefNum do not work correctly with resource forks
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.
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.