mirror of https://github.com/OpenTTD/OpenTTD
(svn r26502) -Fix: OSX compilation error
parent
66743167c9
commit
781dd48949
|
@ -621,7 +621,7 @@ void cocoaSetApplicationBundleDir()
|
||||||
char tmp[MAXPATHLEN];
|
char tmp[MAXPATHLEN];
|
||||||
CFURLRef url = CFBundleCopyResourcesDirectoryURL(CFBundleGetMainBundle());
|
CFURLRef url = CFBundleCopyResourcesDirectoryURL(CFBundleGetMainBundle());
|
||||||
if (CFURLGetFileSystemRepresentation(url, true, (unsigned char*)tmp, MAXPATHLEN)) {
|
if (CFURLGetFileSystemRepresentation(url, true, (unsigned char*)tmp, MAXPATHLEN)) {
|
||||||
AppendPathSeparator(tmp, lengthof(tmp));
|
AppendPathSeparator(tmp, lastof(tmp));
|
||||||
_searchpaths[SP_APPLICATION_BUNDLE_DIR] = strdup(tmp);
|
_searchpaths[SP_APPLICATION_BUNDLE_DIR] = strdup(tmp);
|
||||||
} else {
|
} else {
|
||||||
_searchpaths[SP_APPLICATION_BUNDLE_DIR] = NULL;
|
_searchpaths[SP_APPLICATION_BUNDLE_DIR] = NULL;
|
||||||
|
|
Loading…
Reference in New Issue