Ticket #56077: patch-physfs-objectatindex.diff

File patch-physfs-objectatindex.diff, 623 bytes (added by kencu (Ken), 6 years ago)
  • src/physfs_platform_apple.m

    old new  
    5050    {
    5151        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE);
    5252        BAIL_IF(!paths, PHYSFS_ERR_OS_ERROR, NULL);
    53         NSString *path = (NSString *) paths[0];
     53        NSString *path = (NSString *) [paths objectAtIndex:0];
    5454        BAIL_IF(!path, PHYSFS_ERR_OS_ERROR, NULL);
    5555        size_t len = [path lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
    5656        const size_t applen = strlen(app);