Oh man, yet another development setup configuration! Am I correct in saying you do:
% cd /directory/with/homeworld/data/files
The reason the reverted code works is the prepend path is defaulting to the current directory on Windows/Linux and you happen to be in the directory with all the data files in it. I'm (sort of) in the reverse situation, running from the installed location and overriding where the data files live (well, the local filesystem .big override files at any rate).
It sounds like we may need to track (yet) another directory path:
- Homeworld root path
- game data root path
- local file overrides to data file contents for ease of development/debugging
- user settings path
- cdrom path (not convinced this is really needed any more)
where game data root path
should default to Homeworld root path
(because that's how the game gets installed) with the option to override at run time.
Does that sound like I've understood the situation correctly and does my proposed solution seem reasonable to you guys?
Also, I've symlinked to the real data files from where my Homeworld binary gets built so that it more closely resembles a normal installation. If you don't want to have to set a runtime environment variable or equivalent all the time then this might also be an alternative solution.