sezero / quakespasm

QuakeSpasm -- A modern, cross-platform Quake game engine based on FitzQuake.
https://sourceforge.net/projects/quakespasm/
GNU General Public License v2.0
244 stars 97 forks source link

Make userdirs more comfortable on Haiku OS #61

Closed erysdren closed 1 year ago

erysdren commented 1 year ago

Sorry to write another pull request, I forgot to do this in the original work I did. Instead of $HOME/.quakespasm, Haiku's organizational structure would prefer ~/config/non-packaged/data/QuakeSpasm

sezero commented 1 year ago

OK, will pull this in soon.

erysdren commented 1 year ago

Hang off for a bit. I haven't had time yet, but I need to do a little bit more work to correct a mistake in there. Will get back to you later today.

erysdren commented 1 year ago

Alright, it's ready.

sezero commented 1 year ago

Sorry that I keep forgetting this one.

I don't understand the last hack patch to common.c to load quakespasm.pak: You are not building with DO_USERDIRS=1 on the make command line, but you want to load quakespasm.pak from userdir and not basedir?? quakespasm.pak can very well be in the basedir. If you do build with DO_USERDIRS=1, then the pak will be searched first in userdir then in basedir.

sezero commented 1 year ago

Hand-picked changes applied as dbabc131b0848bc498ada9f5dcd1b886dd9e87ad and daaedb6612df7c4092e937698b2014b69bdaf50a. Omitted COM_AddGameDirectory changes (and installing of quakespasm.pak to userdir): Building with DO_USERDIRS=1 on the make command line should handle that already.

Closing. Please refresh your fork, and create new pull requests as needed.

Thanks!