mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-08 10:30:45 +00:00
Another minor 10.4 fix, Marcus Gail's CD-ROM boot UI fix
This commit is contained in:
parent
b78c71dab6
commit
185141ee4b
@ -150,6 +150,7 @@ extern string UserPrefsPath; // from prefs_unix.cpp
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[home release];
|
||||
[volsDS release];
|
||||
[SCSIds release];
|
||||
[lockCell release];
|
||||
@ -261,7 +262,11 @@ extern string UserPrefsPath; // from prefs_unix.cpp
|
||||
- (IBAction) ChangeBootFrom: (NSMatrix *)sender
|
||||
{
|
||||
if ( [sender selectedCell] == (id)bootFromCD )
|
||||
{
|
||||
[disableCD setState: NSOffState];
|
||||
|
||||
PrefsReplaceInt32("bootdriver", CDROMRefNum);
|
||||
}
|
||||
else
|
||||
PrefsReplaceInt32("bootdriver", 0);
|
||||
edited = YES;
|
||||
@ -275,7 +280,14 @@ extern string UserPrefsPath; // from prefs_unix.cpp
|
||||
|
||||
- (IBAction) ChangeDisableCD: (NSButton *)sender
|
||||
{
|
||||
PrefsReplaceBool("nocdrom", [disableCD state]);
|
||||
int disabled = [disableCD state];
|
||||
|
||||
PrefsReplaceBool("nocdrom", disabled);
|
||||
if ( disabled )
|
||||
{
|
||||
[bootFromAny setState: NSOnState];
|
||||
[bootFromCD setState: ![disableCD state]];
|
||||
}
|
||||
edited = YES;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user