Skip to content

Commit

Permalink
Wrong logic while creating "homeXdg".
Browse files Browse the repository at this point in the history
Also changed .local/share/openarena to .local/share/OpenArena.

com_homepath will properly be permanently broken as it cannot handle two different home names.
  • Loading branch information
sago007 committed Dec 28, 2016
1 parent 4209b06 commit d905eba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions code/qcommon/q_shared.h
Expand Up @@ -27,16 +27,16 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// A user mod should never modify this file

#ifdef STANDALONE
#define PRODUCT_NAME "ioq3+oa"
#define BASEGAME "baseoa"
#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"
#define LEGACY_PROTOCOL 1 // OA still uses the legacy protocol
#define PRODUCT_NAME "ioq3+oa"
#define BASEGAME "baseoa"
#define CLIENT_WINDOW_TITLE "OpenArena"
#define CLIENT_WINDOW_MIN_TITLE "OA"
#define HOMEPATH_NAME_UNIX ".openarena"
#define HOMEPATH_NAME_WIN "OpenArena"
#define HOMEPATH_NAME_MACOSX HOMEPATH_NAME_WIN
#define HOMEPATH_NAME_XDG HOMEPATH_NAME_WIN
#define GAMENAME_FOR_MASTER "Quake3Arena" // must NOT contain whitespace. No servers show up if you use "openarena"
#define LEGACY_PROTOCOL 1 // OA still uses the legacy protocol
#else
#define PRODUCT_NAME "ioq3"
#define BASEGAME "baseq3"
Expand Down
2 changes: 1 addition & 1 deletion code/sys/sys_unix.c
Expand Up @@ -150,7 +150,7 @@ static void CreateXDGPathAndMisc( void ) {
Com_Printf("Failed to move \"%s\" to \"%s\". Error code: %d. Non fatal.", homeClassic, homeXdg, errCode);
}
}
if (Sys_IsDir(homeXdg)) {
if (!Sys_IsDir(homeXdg)) {
int errCode = Sys_Mkdir(homeXdg);
if (errCode) {
Com_Printf("Failed to create \"%s\". Error code: %d. This is quite bad.", homeXdg, errCode);
Expand Down

0 comments on commit d905eba

Please sign in to comment.