Mercurial > sdl-ios-xcode
diff src/cdrom/macosx/SDL_syscdrom.c @ 1793:4d66375c2012
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
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 09 May 2006 07:52:04 +0000 |
parents | 92947e3a18db |
children | 782fd950bd46 c121d94672cb a1b03ba2fcd0 |
line wrap: on
line diff
--- 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 ();