mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-19 09:30:56 +00:00
Fix some more identation
This commit is contained in:
parent
6cdb38e234
commit
50787359a5
@ -102,11 +102,11 @@ static NSString *getStringFromPrefs(const char *key)
|
|||||||
const char *dsk;
|
const char *dsk;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
while ((dsk = PrefsFindString("disk", index++)) != NULL) {
|
while ((dsk = PrefsFindString("disk", index++)) != NULL) {
|
||||||
DiskType *disk = [[DiskType alloc] init];
|
DiskType *disk = [[DiskType alloc] init];
|
||||||
[disk setPath:[NSString stringWithUTF8String: dsk ]];
|
[disk setPath:[NSString stringWithUTF8String: dsk ]];
|
||||||
[disk setIsCDROM:NO];
|
[disk setIsCDROM:NO];
|
||||||
|
|
||||||
[diskArray addObject:disk];
|
[diskArray addObject:disk];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fetch all CDROMs */
|
/* Fetch all CDROMs */
|
||||||
@ -258,18 +258,18 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
|||||||
- (void) _addDiskEnd: (NSOpenPanel *) open returnCode: (int) theReturnCode contextInfo: (void *) theContextInfo
|
- (void) _addDiskEnd: (NSOpenPanel *) open returnCode: (int) theReturnCode contextInfo: (void *) theContextInfo
|
||||||
{
|
{
|
||||||
if (theReturnCode == NSOKButton) {
|
if (theReturnCode == NSOKButton) {
|
||||||
DiskType *d = [[DiskType alloc] init];
|
DiskType *d = [[DiskType alloc] init];
|
||||||
[d setPath:makeRelativeIfNecessary([open filename])];
|
[d setPath:makeRelativeIfNecessary([open filename])];
|
||||||
|
|
||||||
if([isCDROMcheckbox state] == NSOnState) {
|
if([isCDROMcheckbox state] == NSOnState) {
|
||||||
[d setIsCDROM:YES];
|
[d setIsCDROM:YES];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
[d setIsCDROM:NO];
|
[d setIsCDROM:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
[diskArray addObject: d];
|
[diskArray addObject: d];
|
||||||
[disks reloadData];
|
[disks reloadData];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
|||||||
[d setPath:makeRelativeIfNecessary([save filename])];
|
[d setPath:makeRelativeIfNecessary([save filename])];
|
||||||
[d setIsCDROM:NO];
|
[d setIsCDROM:NO];
|
||||||
|
|
||||||
[diskArray addObject: d];
|
[diskArray addObject: d];
|
||||||
[disks reloadData];
|
[disks reloadData];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -407,8 +407,8 @@ static NSString *makeRelativeIfNecessary(NSString *path)
|
|||||||
|
|
||||||
// Write all disks
|
// Write all disks
|
||||||
for (int i = 0; i < [diskArray count]; i++) {
|
for (int i = 0; i < [diskArray count]; i++) {
|
||||||
DiskType *d = [diskArray objectAtIndex:i];
|
DiskType *d = [diskArray objectAtIndex:i];
|
||||||
PrefsAddString([d isCDROM] ? "cdrom" : "disk", [[d path] UTF8String]);
|
PrefsAddString([d isCDROM] ? "cdrom" : "disk", [[d path] UTF8String]);
|
||||||
}
|
}
|
||||||
|
|
||||||
PrefsReplaceInt32("bootdriver", ([bootFrom indexOfSelectedItem] == 1 ? CDROMRefNum : 0));
|
PrefsReplaceInt32("bootdriver", ([bootFrom indexOfSelectedItem] == 1 ? CDROMRefNum : 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user