Mercurial > sdl-ios-xcode
diff src/cdrom/macosx/SDL_syscdrom.c @ 4190:386181851388 SDL-1.2
Fixed CD-ROM code to work with Mac OS X 10.6 SDK and 64-bit targets.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 12 Sep 2009 15:06:16 +0000 |
parents | a1b03ba2fcd0 |
children |
line wrap: on
line diff
--- a/src/cdrom/macosx/SDL_syscdrom.c Sat Sep 12 15:04:32 2009 +0000 +++ b/src/cdrom/macosx/SDL_syscdrom.c Sat Sep 12 15:06:16 2009 +0000 @@ -263,6 +263,14 @@ /* Get the Unix disk name of the volume */ static const char *SDL_SYS_CDName (int drive) { + /* + * !!! FIXME: PBHGetVolParmsSync() is gone in 10.6, + * !!! FIXME: replaced with FSGetVolumeParms(), which + * !!! FIXME: isn't available before 10.5. :/ + */ + return "Mac OS X CD-ROM Device"; + +#if 0 OSStatus err = noErr; HParamBlockRec pb; GetVolParmsInfoBuffer volParmsInfo; @@ -282,6 +290,7 @@ } return volParmsInfo.vMDeviceID; +#endif } /* Open the "device" */