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
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