mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-20 15:29:48 +00:00
Can only use floppy location code on OS X 10.2 or above?
This commit is contained in:
parent
5e528f2d6f
commit
db3c11dd75
@ -31,7 +31,9 @@
|
|||||||
#import <IOKit/serial/IOSerialKeys.h>
|
#import <IOKit/serial/IOSerialKeys.h>
|
||||||
#import <IOKit/storage/IOMedia.h>
|
#import <IOKit/storage/IOMedia.h>
|
||||||
#import <IOKit/storage/IOMediaBSDClient.h>
|
#import <IOKit/storage/IOMediaBSDClient.h>
|
||||||
#import <IOKit/storage/IOBlockStorageDevice.h>
|
#ifdef MAC_OS_X_VERSION_10_2
|
||||||
|
#import <IOKit/storage/IOBlockStorageDevice.h>
|
||||||
|
#endif
|
||||||
#import <IOKit/storage/IOCDMedia.h>
|
#import <IOKit/storage/IOCDMedia.h>
|
||||||
#import <IOKit/storage/IOCDMediaBSDClient.h>
|
#import <IOKit/storage/IOCDMediaBSDClient.h>
|
||||||
#import <CoreFoundation/CoreFoundation.h>
|
#import <CoreFoundation/CoreFoundation.h>
|
||||||
@ -127,6 +129,7 @@ void DarwinAddCDROMPrefs(void)
|
|||||||
|
|
||||||
void DarwinAddFloppyPrefs(void)
|
void DarwinAddFloppyPrefs(void)
|
||||||
{
|
{
|
||||||
|
#ifdef MAC_OS_X_VERSION_10_2
|
||||||
mach_port_t masterPort; // The way to talk to the kernel
|
mach_port_t masterPort; // The way to talk to the kernel
|
||||||
io_iterator_t allFloppies; // List of CD drives on the system
|
io_iterator_t allFloppies; // List of CD drives on the system
|
||||||
CFMutableDictionaryRef classesToMatch;
|
CFMutableDictionaryRef classesToMatch;
|
||||||
@ -189,6 +192,7 @@ void DarwinAddFloppyPrefs(void)
|
|||||||
|
|
||||||
IOObjectRelease(nextFloppy);
|
IOObjectRelease(nextFloppy);
|
||||||
IOObjectRelease(allFloppies);
|
IOObjectRelease(allFloppies);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user