unix.c
changeset 2952 58522ed8f0f1
parent 2940 2b86050d1a94
child 3260 ed19f95eb4f7
equal deleted inserted replaced
2951:2de6d3a59743 2952:58522ed8f0f1
   459 	int ret;
   459 	int ret;
   460 
   460 
   461 #ifdef WITH_COCOA
   461 #ifdef WITH_COCOA
   462 	cocoaSetupAutoreleasePool();
   462 	cocoaSetupAutoreleasePool();
   463     /* This is passed if we are launched by double-clicking */
   463     /* This is passed if we are launched by double-clicking */
   464 	if(argc >= 2 && strncmp (argv[1], "-psn", 4) == 0) {
   464 	if (argc >= 2 && strncmp (argv[1], "-psn", 4) == 0) {
   465 		argv[1] = NULL;
   465 		argv[1] = NULL;
   466 		argc = 1;
   466 		argc = 1;
   467 		cocoaSetWorkingDirectory();
   467 		cocoaSetWorkingDirectory();
   468 	}
   468 	}
   469 #endif
   469 #endif