Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetRefInfo and GetRefNum do not work correctly with resource forks #6

Open
sheumann opened this issue Mar 27, 2024 · 1 comment
Open

Comments

@sheumann
Copy link

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.

@ksherlock
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants