mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 15:32:04 +00:00
Ensures proper upward propagation of sleeping from first start.
This commit is contained in:
parent
4c49963988
commit
1aba9f807e
@ -25,6 +25,7 @@ DiskII::DiskII() :
|
||||
{
|
||||
drives_[0].set_sleep_observer(this);
|
||||
drives_[1].set_sleep_observer(this);
|
||||
drives_[active_drive_].set_event_delegate(this);
|
||||
}
|
||||
|
||||
void DiskII::set_control(Control control, bool on) {
|
||||
@ -138,6 +139,7 @@ void DiskII::set_controller_can_sleep() {
|
||||
}
|
||||
|
||||
bool DiskII::is_write_protected() {
|
||||
return true;
|
||||
return !!(stepper_mask_ & 2) | drives_[active_drive_].get_is_read_only();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user