Ticket #56077: patch-physfs-objectatindex.diff
File patch-physfs-objectatindex.diff, 623 bytes (added by kencu (Ken), 7 years ago) |
---|
-
src/physfs_platform_apple.m
old new 50 50 { 51 51 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE); 52 52 BAIL_IF(!paths, PHYSFS_ERR_OS_ERROR, NULL); 53 NSString *path = (NSString *) paths[0];53 NSString *path = (NSString *) [paths objectAtIndex:0]; 54 54 BAIL_IF(!path, PHYSFS_ERR_OS_ERROR, NULL); 55 55 size_t len = [path lengthOfBytesUsingEncoding:NSUTF8StringEncoding]; 56 56 const size_t applen = strlen(app);