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: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=bb696fef79b956b09b2f6766e7c87ac364ecceae;hp=f7b0c61e168f52b255e42a9cf26e87bf7be6fc41 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));