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)