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.
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);
intobasePath = Files::real_dirname(self_path);
and changed the console of of the basePath to happen after the check for../shared/nuked-sc55
and to usebasePath
instead ofargv[0]
. So this PR also achieves the same results as #66.