]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
mac builds now detect if the gamedir exists in the .app/Contents/Resources/ folder
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 May 2011 22:28:44 +0000 (22:28 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 May 2011 22:28:44 +0000 (22:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11137 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index da708289997ea93e878fb9f24090a9b705ef5d90..ec93c091cca705081e8242d86ab9bd12c0cc0b85 100644 (file)
--- 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));