mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-22 13:31:08 +00:00
Fix formatting
This commit is contained in:
parent
a2e163fea9
commit
4f14c44837
@ -408,13 +408,12 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
||||
PrefsRemoveItem("disk");
|
||||
// Remove all cdroms (but keep the ones in /dev/)
|
||||
const char *path;
|
||||
int index=0;
|
||||
int index = 0;
|
||||
while ((path = PrefsFindString("cdrom", index)) != NULL) {
|
||||
NSString *p = [NSString stringWithUTF8String: path];
|
||||
if(![p hasPrefix:@"/dev/"]) {
|
||||
if (![p hasPrefix:@"/dev/"]) {
|
||||
PrefsRemoveItem("cdrom", index);
|
||||
}
|
||||
else {
|
||||
} 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++;
|
||||
|
Loading…
Reference in New Issue
Block a user