apple: Patched to compile with older (mac 10.7) SDKs (thanks, Ken and Ryan!).
authorRyan C. Gordon <icculus@icculus.org>
Sat, 24 Mar 2018 00:19:59 -0400
changeset 1639 46561a309895
parent 1638 1cbecbcf537e
child 1642 ccfe2177e394
apple: Patched to compile with older (mac 10.7) SDKs (thanks, Ken and Ryan!).
src/physfs_platform_apple.m
--- a/src/physfs_platform_apple.m	Fri Mar 09 14:50:37 2018 -0500
+++ b/src/physfs_platform_apple.m	Sat Mar 24 00:19:59 2018 -0400
@@ -50,7 +50,7 @@
     {
         NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE);
         BAIL_IF(!paths, PHYSFS_ERR_OS_ERROR, NULL);
-        NSString *path = (NSString *) paths[0];
+        NSString *path = (NSString *) [paths objectAtIndex:0];
         BAIL_IF(!path, PHYSFS_ERR_OS_ERROR, NULL);
         size_t len = [path lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
         const size_t applen = strlen(app);