Some coding style changes

This commit is contained in:
atmaxinger 2014-09-15 07:09:09 +02:00 committed by Maximilian Irlinger
parent fd62819e49
commit df35760137
2 changed files with 18 additions and 27 deletions

View File

@ -30,11 +30,8 @@
IBOutlet NSView *diskSaveSize;
IBOutlet NSTextField *diskSaveSizeField;
NSMutableArray *diskArray;
IBOutlet NSView *isCDROM;
IBOutlet NSButton *isCDROMcheckbox;
//NSMutableArray *cdromArray;
// Setup
IBOutlet NSTableView *disks;
IBOutlet NSComboBox *bootFrom;

View File

@ -30,7 +30,6 @@
#include <unistd.h>
const int CDROMRefNum = -62; // RefNum of driver
#ifdef STANDALONE_PREFS
@ -65,7 +64,6 @@ void prefs_exit()
- (int) numberOfRowsInTableView: (NSTableView *) table
{
//NSLog(@"Count of diskArray: %d", [diskArray count]);
return [diskArray count];
}
@ -412,11 +410,7 @@ static NSString *makeRelativeIfNecessary(NSString *path)
// Write all disks
for (int i = 0; i < [diskArray count]; i++) {
DiskType *d = [diskArray objectAtIndex:i];
if([d isCDROM])
PrefsAddString("cdrom", [[d path] UTF8String]);
else
PrefsAddString("disk", [[d path] UTF8String]);
PrefsAddString([d isCDROM] ? "cdrom" : "disk", [[d path] UTF8String]);
}
PrefsReplaceInt32("bootdriver", ([bootFrom indexOfSelectedItem] == 1 ? CDROMRefNum : 0));