Started to implement Issue #30. XDG folder structure. All weaknesses from the old system are still there:

HOME must be defined: Not a regression
Only one level of mkdir: Not a regression (but might be more relevant)

com_homepath is not fully implemented and it will need to be set to "openarena" instead of ".openarena". But that just makes it like Mac.
This commit is contained in:
sago007
2016-12-28 15:28:19 +01:00
parent 6aab9a0fb6
commit 4209b06c26
4 changed files with 134 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define CLIENT_WINDOW_TITLE "OpenArena"
#define CLIENT_WINDOW_MIN_TITLE "OA"
#define HOMEPATH_NAME_UNIX ".openarena"
#define HOMEPATH_NAME_XDG "openarena"
#define HOMEPATH_NAME_WIN "OpenArena"
#define HOMEPATH_NAME_MACOSX HOMEPATH_NAME_WIN
#define GAMENAME_FOR_MASTER "Quake3Arena" // must NOT contain whitespace. No servers show up if you use "openarena"