mirror of https://github.com/stella-emu/stella.git
Remove unecessary cwd logic.
This commit is contained in:
parent
17f5180682
commit
06f452e7bd
|
@ -25,24 +25,6 @@ static SDLMain* sharedInstance = nil;
|
||||||
return sharedInstance;
|
return sharedInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// Set the working directory to the .app's parent directory
|
|
||||||
- (void) setupWorkingDirectory
|
|
||||||
{
|
|
||||||
char parentdir[MAXPATHLEN];
|
|
||||||
|
|
||||||
CFURLRef url = CFBundleCopyBundleURL(CFBundleGetMainBundle());
|
|
||||||
CFURLRef url2 = CFURLCreateCopyDeletingLastPathComponent(0, url);
|
|
||||||
if (CFURLGetFileSystemRepresentation(url2, 1, (UInt8*)parentdir, MAXPATHLEN))
|
|
||||||
{
|
|
||||||
chdir(parentdir); /* chdir to the binary app's parent */
|
|
||||||
}
|
|
||||||
CFRelease(url);
|
|
||||||
CFRelease(url2);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* Catch document open requests...this lets us notice files when the app
|
* Catch document open requests...this lets us notice files when the app
|
||||||
|
@ -75,9 +57,6 @@ static SDLMain* sharedInstance = nil;
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
// Set the working directory to the .app's parent directory
|
|
||||||
[self setupWorkingDirectory];
|
|
||||||
|
|
||||||
calledMainline = TRUE;
|
calledMainline = TRUE;
|
||||||
|
|
||||||
if (openFilename) {
|
if (openFilename) {
|
||||||
|
|
Loading…
Reference in New Issue