mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-18 11:29:47 +00:00
Use correct (non-deprecated) names for some keys
This commit is contained in:
parent
3d4961887c
commit
ff36326ea8
@ -74,7 +74,7 @@ void DarwinAddCDROMPrefs(void)
|
|||||||
// has a property with key kIOMediaEjectable. We limit
|
// has a property with key kIOMediaEjectable. We limit
|
||||||
// the match only to those CDs that are actually ejectable
|
// the match only to those CDs that are actually ejectable
|
||||||
CFDictionarySetValue(classesToMatch,
|
CFDictionarySetValue(classesToMatch,
|
||||||
CFSTR(kIOMediaEjectable), kCFBooleanTrue);
|
CFSTR(kIOMediaEjectableKey), kCFBooleanTrue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( IOServiceGetMatchingServices(masterPort,
|
if ( IOServiceGetMatchingServices(masterPort,
|
||||||
@ -90,8 +90,9 @@ void DarwinAddCDROMPrefs(void)
|
|||||||
{
|
{
|
||||||
char bsdPath[MAXPATHLEN];
|
char bsdPath[MAXPATHLEN];
|
||||||
CFTypeRef bsdPathAsCFString =
|
CFTypeRef bsdPathAsCFString =
|
||||||
IORegistryEntryCreateCFProperty(nextCD, CFSTR(kIOBSDName),
|
IORegistryEntryCreateCFProperty(nextCD,
|
||||||
kCFAllocatorDefault, 0);
|
CFSTR(kIOBSDNameKey),
|
||||||
|
kCFAllocatorDefault, 0);
|
||||||
*bsdPath = '\0';
|
*bsdPath = '\0';
|
||||||
if ( bsdPathAsCFString )
|
if ( bsdPathAsCFString )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user