mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-11 10:30:09 +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];
|
NSString *p = [NSString stringWithUTF8String: 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user