From: havoc Date: Sun, 8 May 2011 22:28:44 +0000 (+0000) Subject: mac builds now detect if the gamedir exists in the .app/Contents/Resources/ folder X-Git-Tag: xonotic-v0.5.0~197 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=120aecdae6a20006fa79abfc63df7dc65d0f7dc8;p=xonotic%2Fdarkplaces.git mac builds now detect if the gamedir exists in the .app/Contents/Resources/ folder git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11137 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=bb696fef79b956b09b2f6766e7c87ac364ecceae --- diff --git a/fs.c b/fs.c index da708289..ec93c091 100644 --- a/fs.c +++ b/fs.c @@ -1939,7 +1939,7 @@ void FS_Init (void) // truncate to just after the .app/ split[5] = 0; // see if gamedir exists in Resources - if (stat(va("%s/Contents/Resources/%s", fs_basedir, gamedirname1)), &statresult) == 0) + if (stat(va("%s/Contents/Resources/%s", fs_basedir, gamedirname1), &statresult) == 0) { // found gamedir inside Resources, use it strlcat(fs_basedir, "Contents/Resources/", sizeof(fs_basedir));