mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-19 19:30:42 +00:00
Some coding style changes
This commit is contained in:
parent
fd62819e49
commit
df35760137
@ -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;
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user