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.6.0~163^2~409 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bb696fef79b956b09b2f6766e7c87ac364ecceae;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 --- 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));