svkaiser / strife-ve

Strife Veteran Edition GPL Source Release
GNU General Public License v2.0
133 stars 37 forks source link

add __OpenBSD__ check to allow pathspec to work like linux #5

Closed ryan-sg closed 7 years ago

ryan-sg commented 8 years ago

Without this, builds on OpenBSD fall back to current directory behavior, so save games and config is saved in $PWD only.

As many other systems can be handled by the linux define here, I might suggest verifying the system type directly in the CMakeLists.txt file, then setting a flag such as -DXDG to allow this code to be followed on Linux, Open/Free/NetBSD, OpenIndiana, whatever else is out there that respects freedesktop standards. At least rather than adding a big list directly to m_config.c :-)

If others are open to this idea, I'll figure out how to do this and submit a better patch