-
Notifications
You must be signed in to change notification settings - Fork 350
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
MacOS: set basepath to executablePath rather than one path above bundle #469
base: master
Are you sure you want to change the base?
Conversation
Fixes an issue where the base path would typically be set to /Application if the bundle is installed into /Application/dhewm3.app. Now the default basepath will be /Application/dhewm3.app/Content/MacOS/ where the dhewm3 binary is located.
Without really going deep in the code, I guessing this is the functionality you want, yes. The The save directory on mac is in an unrelated folder to the app. I'm pretty sure this is a legit fix, the only question I have is ... what does it fix? What was the problem when it was the bundle path? Was |
As far as I can tell, the exe path doesn't get used in |
If that really causes a bug with libbacktrace can be tested by building with libbacktrace and then entering the following in the doom3 console: |
I |
I'm pretty sure it is, and is comparable to simaiar app bundles I've used i.e OpenJK or RTCW (both quake 3 engine based). Otherwise the current implementation will look for the basepath one directory above the app bundle, and in most cases that's |
Good question - running CMake should find it automatically, if it's installed systemwide (the compiler can find If CMake found libbacktrace, it will print "Using libbacktrace" instead of "libbacktrace wasn't found. It's not required but recommended, because it provides useful backtraces if dhewm3 crashes" So I guess @palmerj wants to put the game data into the dhewm3.app bundle, instead of putting the dhewm3.app bundle into the game data? |
Correct, and at the moment one of the default's is |
I think the first path given by the |
Hmm, not if you are using a multi-user OS or want to copy the bundle around in one unit.
The only config I have is base/default.cfg, the other user ones which get changed by the UI are in ~/Library/Application Support/dhwem3 |
I agree that putting the base files in app bundle is a good option. |
That would work, but what's wrong with updating the code as proposed. I can't see why we want it the other way. |
You mean that your patch should be accepted so that you have the option to bundle the It is also possible to fork the repo and build options precisely as you want them. |
If you are referring to
Sure I've already done that. Just thought this might be what most MacOS users really want. |
You are assuming that the app is in the |
But are bundles really for dev? I doubt it - they can config and run stuff however. Bundles are for distribution for end users. |
I'm done discussing. |
@DanielGibson do you have view on if this can be merged? I think @knev's comments above more come from being a developer and not a user. |
Fixes an issue where the base path would typically be set to /Application if the bundle is installed into /Application/dhewm3.app. Now the default basepath will be /Application/dhewm3.app/Content/MacOS/ where the dhewm3 binary is located.