summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-17 11:36:04 +0000
committerrubidium <rubidium@openttd.org>2007-03-17 11:36:04 +0000
commit50b2088674b5835aaab3985d7dcc7473c1a3b08c (patch)
tree287f1391a600cfd916be1d6a412e6f232945aba4 /src/video
parent92486ac980175b06fc22f2456d78737ead6eabfa (diff)
downloadopenttd-50b2088674b5835aaab3985d7dcc7473c1a3b08c.tar.xz
(svn r9266) -Codechange: unify the retrieval of the base paths a little more.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa_v.mm16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm
index d4ae4c3e0..b8193e902 100644
--- a/src/video/cocoa_v.mm
+++ b/src/video/cocoa_v.mm
@@ -2047,22 +2047,6 @@ void CocoaDialog(const char* title, const char* message, const char* buttonLabel
_cocoa_video_dialog = false;
}
-
-/* This is needed since OS X applications are started with the working dir set to / when double-clicked */
-void cocoaSetWorkingDirectory()
-{
- char parentdir[MAXPATHLEN];
- int chdir_ret;
- CFURLRef url = CFBundleCopyBundleURL(CFBundleGetMainBundle());
- CFURLRef url2 = CFURLCreateCopyDeletingLastPathComponent(0, url);
- if (CFURLGetFileSystemRepresentation(url2, true, (unsigned char*)parentdir, MAXPATHLEN)) {
- chdir_ret = chdir(parentdir); /* chdir to the binary app's parent */
- assert(chdir_ret == 0);
- }
- CFRelease(url);
- CFRelease(url2);
-}
-
/* These are called from main() to prevent a _NSAutoreleaseNoPool error when
* exiting before the cocoa video driver has been loaded
*/