mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-29 14:49:44 +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 */
|
/* Fetch all CDROMs */
|
||||||
index = 0;
|
index = 0;
|
||||||
while ((dsk = PrefsFindString("cdrom", index++)) != NULL) {
|
while ((dsk = PrefsFindString("cdrom", index++)) != NULL) {
|
||||||
DiskType *disk = [[[DiskType alloc] init] autorelease];
|
NSString *path = [NSString stringWithUTF8String: dsk ];
|
||||||
[disk setPath:[NSString stringWithUTF8String: dsk ]];
|
if(![path isEqualToString:@"/dev/poll/cdrom"]) {
|
||||||
[disk setIsCDROM:YES];
|
DiskType *disk = [[[DiskType alloc] init] autorelease];
|
||||||
|
[disk setPath:[NSString stringWithUTF8String: dsk ]];
|
||||||
|
[disk setIsCDROM:YES];
|
||||||
|
|
||||||
[diskArray addObject:disk];
|
[diskArray addObject:disk];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[disks setDataSource: self];
|
[disks setDataSource: self];
|
||||||
|
Loading…
Reference in New Issue
Block a user