1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 23:52:26 +00:00

Changes the default-assigned Disk II card slot from 7 to 6.

This commit is contained in:
Thomas Harte 2018-04-24 20:24:44 -07:00
parent 376b26c1e4
commit 2685e9087e

View File

@ -272,15 +272,15 @@ class ConcreteMachine:
void configure_as_target(const Analyser::Static::Target *target) override {
auto *const apple_target = dynamic_cast<const Analyser::Static::AppleII::Target *>(target);
if(apple_target->has_disk) {
cards_[6].reset(new AppleII::DiskIICard(rom_fetcher_, true));
cards_[5].reset(new AppleII::DiskIICard(rom_fetcher_, true));
}
insert_media(apple_target->media);
}
bool insert_media(const Analyser::Static::Media &media) override {
if(!media.disks.empty() && cards_[6]) {
dynamic_cast<AppleII::DiskIICard *>(cards_[6].get())->set_disk(media.disks[0], 0);
if(!media.disks.empty() && cards_[5]) {
dynamic_cast<AppleII::DiskIICard *>(cards_[5].get())->set_disk(media.disks[0], 0);
}
return true;
}