1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-25 11:17:26 +00:00

Flips meaning of ejected bit, to please the IIgs.

This commit is contained in:
Thomas Harte
2020-11-18 17:20:48 -05:00
parent 62f936128d
commit cddd72876f
4 changed files with 13 additions and 7 deletions
+2 -1
View File
@@ -58,12 +58,13 @@ void Drive::set_disk(const std::shared_ptr<Disk> &disk) {
if(ready_type_ == ReadyType::ShugartModifiedRDY || ready_type_ == ReadyType::IBMRDY) {
is_ready_ = false;
}
const bool had_disk = bool(disk_);
if(disk_) disk_->flush_tracks();
disk_ = disk;
has_disk_ = !!disk_;
invalidate_track();
did_set_disk();
did_set_disk(had_disk);
update_clocking_observer();
}