nukeykt / Nuked-SC55

Roland SC-55 series emulation
Other
293 stars 33 forks source link

Fixed basePath for macOS #86

Open paulofduarte opened 1 week ago

paulofduarte commented 1 week ago

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.