This commit is contained in:
Branimir Karadžić 2014-07-06 22:14:20 -07:00
parent 92000fcb57
commit 3b3120c04d

View file

@ -61,7 +61,9 @@ namespace entry
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle); CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle);
char path[PATH_MAX]; char path[PATH_MAX];
if (CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX) ) if (CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX) )
{
chdir(path); chdir(path);
}
CFRelease(resourcesURL); CFRelease(resourcesURL);
MainThreadEntry* self = (MainThreadEntry*)_userData; MainThreadEntry* self = (MainThreadEntry*)_userData;