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

Fixed basePath for macOS #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

paulofduarte
Copy link

For macOS the executable doesn't use the executable binary location to infer the basePath.

Because of this an installed nuked-sc55 will require the back.data and the roms to be in the current directory to work. This PR implements a similar approach as it was done for Linux to define the basePath and fix the problem.

As this change touches the same lines as #66 and will cause conflicts I had also changed: basePath = Files::dirname(self_path); into basePath = Files::real_dirname(self_path); and changed the console of of the basePath to happen after the check for ../shared/nuked-sc55 and to use basePath instead of argv[0]. So this PR also achieves the same results as #66.

@paulofduarte paulofduarte marked this pull request as ready for review July 2, 2024 12:50
@mistydemeo
Copy link

I'm also a macOS user, and can confirm this works for me.

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

Successfully merging this pull request may close these issues.

2 participants