The Ur-Quan Masters bug database
Bugzilla Version 2.22.2
View Bug Activity | Format For Printing | XML | Clone This Bug
If the forums are to be any guide, a lot of users try to launch the game via the Terminal.app, and it tips over because the game (and therefore the content) are relocatable, and the static definitions built-in to the game don't guess correctly. The obvious workaround is to have them supply a -n argument when launching the game via the Terminal, but they really shouldn't have to, since its location is deterministic (but not static)
Created an attachment (id=535) [details] contentdir.patch Here is a patch for MacOS X that will look for content in the application bundle if it cannot be found in the "default" locations. -n can still be used to override this.
Sounds like an acceptable addition to me. (The extra location; haven't looked in detail at the patch yet).
Created an attachment (id=536) [details] contentdir.patch (improved) Here is an alternate version of the previous patch, with the following small improvements: 1. It doesn't create a global variable with a copy of argv[0] in it for prepareContentDir() to use, it just passes argv[0] to prepareContentDir(). Duh. 2. It free()s the pointers that it malloc(()s. Because otherwise would be rude. 3. It has actual comments that attempt to explain what it's trying to do.
Fixed in SVN revision 2920.