From e31798868387dce89d1ca748960f8b2ca8728318 Mon Sep 17 00:00:00 2001 From: albertzeyer Date: Sun, 26 Jul 2009 09:49:51 +0000 Subject: [PATCH] dont need to change cur dir (and should not change) git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@181 4df4b0f3-56ce-47cb-b001-ed939b7d65a6 --- build/Xcode/MacMain.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build/Xcode/MacMain.m b/build/Xcode/MacMain.m index 4ecf882d2..a5f4b49b1 100644 --- a/build/Xcode/MacMain.m +++ b/build/Xcode/MacMain.m @@ -43,25 +43,25 @@ static BOOL gFinderLaunch; /* Set the working directory to the .app's parent directory */ - (void) setupWorkingDirectory:(BOOL)shouldChdir { - char parentdir[MAXPATHLEN]; +/* char parentdir[MAXPATHLEN]; char *c; strncpy ( parentdir, gArgv[0], sizeof(parentdir) ); c = (char*) parentdir; - while (*c != '\0') /* go to end */ + while (*c != '\0') // go to end c++; - while (*c != '/') /* back up to parent */ + while (*c != '/') // back up to parent c--; - *c++ = '\0'; /* cut off last part (binary name) */ + *c++ = '\0'; // cut off last part (binary name) if (shouldChdir) { - assert ( chdir (parentdir) == 0 ); /* chdir to the binary app's parent */ - assert ( chdir ("../../../") == 0 ); /* chdir to the .app's parent */ - } + assert ( chdir (parentdir) == 0 ); // chdir to the binary app's parent + assert ( chdir ("../../../") == 0 ); // chdir to the .app's parent + }*/ } void setupAppleMenu(void)