1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Upgrade to an Enhanced IIe if hard drives are present.

This commit is contained in:
Thomas Harte 2022-08-30 16:33:43 -04:00
parent 6fa4e379d2
commit f50ce7f137

View File

@ -13,8 +13,16 @@ Analyser::Static::TargetList Analyser::Static::AppleII::GetTargets(const Media &
auto target = std::make_unique<Target>();
target->media = media;
if(!target->media.disks.empty())
// If any disks are present, attach a Disk II.
if(!target->media.disks.empty()) {
target->disk_controller = Target::DiskController::SixteenSector;
}
// The emulated SCSI card requires a IIe, so upgrade to that if
// any mass storage is present.
if(!target->media.mass_storage_devices.empty()) {
target->model = Target::Model::EnhancedIIe;
}
TargetList targets;
targets.push_back(std::move(target));