mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
Mac GUI: don't show /dev/poll/cdrom if it is configured as cdrom
This commit is contained in:
parent
588a2ae9cd
commit
581ce7d971
@ -120,11 +120,14 @@ static NSString *getStringFromPrefs(const char *key)
|
||||
/* Fetch all CDROMs */
|
||||
index = 0;
|
||||
while ((dsk = PrefsFindString("cdrom", index++)) != NULL) {
|
||||
DiskType *disk = [[[DiskType alloc] init] autorelease];
|
||||
[disk setPath:[NSString stringWithUTF8String: dsk ]];
|
||||
[disk setIsCDROM:YES];
|
||||
NSString *path = [NSString stringWithUTF8String: dsk ];
|
||||
if(![path isEqualToString:@"/dev/poll/cdrom"]) {
|
||||
DiskType *disk = [[[DiskType alloc] init] autorelease];
|
||||
[disk setPath:[NSString stringWithUTF8String: dsk ]];
|
||||
[disk setIsCDROM:YES];
|
||||
|
||||
[diskArray addObject:disk];
|
||||
[diskArray addObject:disk];
|
||||
}
|
||||
}
|
||||
|
||||
[disks setDataSource: self];
|
||||
|
Loading…
Reference in New Issue
Block a user