Eliminate the use of FindFolder on OS X, which was deprecated in 10.4, in favour of FSFindFolder.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6098 4a71c877-e1ca-e34f-864e-861f7616d084
master
Freddie Witherden 2008-09-29 20:00:25 +00:00
parent 4a16da1eba
commit 0d8a416f7f
1 changed files with 1 additions and 8 deletions

View File

@ -272,15 +272,8 @@ static void getPlatformUserDir(char * const tmpstr, size_t const size)
strlcat(tmpstr, PHYSFS_getDirSeparator(), size);
else
#elif defined(WZ_OS_MAC)
short vol_ref;
long dir_id;
FSSpec fsspec;
FSRef fsref;
OSErr error = FindFolder(kUserDomain, kApplicationSupportFolderType, false, &vol_ref, &dir_id);
if (!error)
error = FSMakeFSSpec(vol_ref, dir_id, (const unsigned char *) "", &fsspec);
if (!error)
error = FSpMakeFSRef(&fsspec, &fsref);
OSErr error = FSFindFolder(kUserDomain, kApplicationSupportFolderType, false, &fsref);
if (!error)
error = FSRefMakePath(&fsref, (UInt8 *) tmpstr, size);
if (!error)