apple: Patched to compile with older (mac 10.7) SDKs (thanks, Ken and Ryan!).
(transplanted from 46561a3098955aa3534c10e2dcd9e969e140bb3d)
This commit is contained in:
parent
be0afe31e3
commit
a828a91feb
|
@ -50,7 +50,7 @@ char *__PHYSFS_platformCalcPrefDir(const char *org, const char *app)
|
||||||
{
|
{
|
||||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE);
|
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, TRUE);
|
||||||
BAIL_IF(!paths, PHYSFS_ERR_OS_ERROR, NULL);
|
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);
|
BAIL_IF(!path, PHYSFS_ERR_OS_ERROR, NULL);
|
||||||
size_t len = [path lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
|
size_t len = [path lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
|
||||||
const size_t applen = strlen(app);
|
const size_t applen = strlen(app);
|
||||||
|
|
Loading…
Reference in New Issue