Fix formatting

This commit is contained in:
atmaxinger 2018-02-25 17:01:12 +01:00
parent a2e163fea9
commit 4f14c44837

View File

@ -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++;