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

Alpha tester feedback: Phil from Adelaide (OS/X tester) #18

Open
jsno8192 opened this issue Oct 24, 2020 · 1 comment
Open

Alpha tester feedback: Phil from Adelaide (OS/X tester) #18

jsno8192 opened this issue Oct 24, 2020 · 1 comment

Comments

@jsno8192
Copy link
Collaborator

jsno8192 commented Oct 24, 2020

Points from Phil:

  • Had to remove "#include <malloc.h> (used malloc() in <stdlib.h> which is already defined in game)

  • OS/X does not implement unnamed semaphores. sem_init(), sem_destroy(), sem_wait(), sem_post() are stubs in the OS/X libc and are not implemented (Nb/ Game compiled using these functions, but got run time error). Must use named semaphores to fix this bug.

  • OS/X undergoing major upgrade. Release date in a few weeks. All the above may change ?

Game printout:
--$---------------------------------------------------------------------------
Nighthawk v4.0, Copyright (C) 1997 Jason Nunn, Adelaide South Australia.
Warning: Could not load scores file '/var/tmp/nighthawk.scores'.
Warning: Could not restore preserved session '/Users/philfromadelaide/.nighthawk.preserve'.
Error: init_kb_event:sem_init()- Function not implemented
--$---------------------------------------------------------------------------

@jsno8192
Copy link
Collaborator Author

jsno8192 commented Oct 24, 2020

If this is a form/fit/function swapout of functions, I think this fix can go into 4.0. Watch this space.

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

1 participant