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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user