mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-25 10:29:51 +00:00
Fix CD ROM entries appearing multiple times
This commit is contained in:
parent
515746d584
commit
f25821d067
@ -414,9 +414,12 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
|||||||
if(![p hasPrefix:@"/dev/"]) {
|
if(![p hasPrefix:@"/dev/"]) {
|
||||||
PrefsRemoveItem("cdrom", index);
|
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
|
// Write all disks
|
||||||
for (int i = 0; i < [diskArray count]; i++) {
|
for (int i = 0; i < [diskArray count]; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user