Commit 782736f3 authored by Sam Lantinga's avatar Sam Lantinga

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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401752
parent 5843b19d
...@@ -153,7 +153,7 @@ void delete_AudioFilePlayer(AudioFilePlayer *afp) ...@@ -153,7 +153,7 @@ void delete_AudioFilePlayer(AudioFilePlayer *afp)
} }
if (afp->mForkRefNum) { if (afp->mForkRefNum) {
FSClose (afp->mForkRefNum); FSCloseFork (afp->mForkRefNum);
afp->mForkRefNum = 0; afp->mForkRefNum = 0;
} }
SDL_free(afp); SDL_free(afp);
......
...@@ -453,7 +453,7 @@ static int SDL_SYS_CDStop(SDL_CD *cdrom) ...@@ -453,7 +453,7 @@ static int SDL_SYS_CDStop(SDL_CD *cdrom)
static int SDL_SYS_CDEject(SDL_CD *cdrom) static int SDL_SYS_CDEject(SDL_CD *cdrom)
{ {
OSStatus err; OSStatus err;
HParamBlockRec pb; pid_t dissenter;
if (fakeCD) { if (fakeCD) {
SDL_SetError (kErrorFakeDevice); SDL_SetError (kErrorFakeDevice);
...@@ -475,9 +475,7 @@ static int SDL_SYS_CDEject(SDL_CD *cdrom) ...@@ -475,9 +475,7 @@ static int SDL_SYS_CDEject(SDL_CD *cdrom)
status = CD_STOPPED; status = CD_STOPPED;
/* Eject the volume */ /* Eject the volume */
pb.ioParam.ioNamePtr = NULL; err = FSEjectVolumeSync(volumes[cdrom->id], kNilOptions, &dissenter);
pb.ioParam.ioVRefNum = volumes[cdrom->id];
err = PBUnmountVol((ParamBlockRec *) &pb);
if (err != noErr) { if (err != noErr) {
Unlock (); Unlock ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment