# HG changeset patch # User Sam Lantinga # Date 1147161124 0 # Node ID 4d66375c2012a0aab0761b967dd332daa7366d41 # Parent 409974dedf2ee13ac8c11e4803795fc65eb99bf9 Date: Mon, 8 May 2006 14:19:30 -0700 From: Bob Ippolito Subject: SDL trunk (r2346) and Mac OS X As for all the Carbon warnings.. the two File Manager ones should be easy to get rid of, the QuickDraw ones won't be so easy since that requires actual refactoring. PBUnmountVol -> FSEjectVolumeSync FSClose -> FSCloseFork diff -r 409974dedf2e -r 4d66375c2012 src/cdrom/macosx/AudioFilePlayer.c --- a/src/cdrom/macosx/AudioFilePlayer.c Tue May 09 07:50:28 2006 +0000 +++ b/src/cdrom/macosx/AudioFilePlayer.c Tue May 09 07:52:04 2006 +0000 @@ -153,7 +153,7 @@ } if (afp->mForkRefNum) { - FSClose (afp->mForkRefNum); + FSCloseFork (afp->mForkRefNum); afp->mForkRefNum = 0; } SDL_free(afp); diff -r 409974dedf2e -r 4d66375c2012 src/cdrom/macosx/SDL_syscdrom.c --- a/src/cdrom/macosx/SDL_syscdrom.c Tue May 09 07:50:28 2006 +0000 +++ b/src/cdrom/macosx/SDL_syscdrom.c Tue May 09 07:52:04 2006 +0000 @@ -453,8 +453,8 @@ static int SDL_SYS_CDEject(SDL_CD *cdrom) { OSStatus err; - HParamBlockRec pb; - + pid_t dissenter; + if (fakeCD) { SDL_SetError (kErrorFakeDevice); return -1; @@ -475,9 +475,7 @@ status = CD_STOPPED; /* Eject the volume */ - pb.ioParam.ioNamePtr = NULL; - pb.ioParam.ioVRefNum = volumes[cdrom->id]; - err = PBUnmountVol((ParamBlockRec *) &pb); + err = FSEjectVolumeSync(volumes[cdrom->id], kNilOptions, &dissenter); if (err != noErr) { Unlock ();