mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-23 19:29:18 +00:00
Fix CD ROM entries appearing multiple times
This commit is contained in:
parent
515746d584
commit
f25821d067
@ -413,9 +413,12 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
||||
NSString *p = [NSString stringWithUTF8String: path];
|
||||
if(![p hasPrefix:@"/dev/"]) {
|
||||
PrefsRemoveItem("cdrom", index);
|
||||
}
|
||||
else {
|
||||
// only increase the index if the current entry has not been deleted
|
||||
// if it has been deleted, the next entry is on the current entrys index
|
||||
index++;
|
||||
}
|
||||
|
||||
index++;
|
||||
}
|
||||
|
||||
// Write all disks
|
||||
|
Loading…
Reference in New Issue
Block a user