Skip to content

Fixed basePath for macOS#86

Open
paulofduarte wants to merge 2 commits into
nukeykt:masterfrom
paulofduarte:master
Open

Fixed basePath for macOS#86
paulofduarte wants to merge 2 commits into
nukeykt:masterfrom
paulofduarte:master

Conversation

@paulofduarte

Copy link
Copy Markdown

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
Copy Markdown

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