From f50ce7f13782d83449b8f2f4beef8af8aef6d818 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 30 Aug 2022 16:33:43 -0400 Subject: [PATCH] Upgrade to an Enhanced IIe if hard drives are present. --- Analyser/Static/AppleII/StaticAnalyser.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Analyser/Static/AppleII/StaticAnalyser.cpp b/Analyser/Static/AppleII/StaticAnalyser.cpp index 166499a72..5c5933e32 100644 --- a/Analyser/Static/AppleII/StaticAnalyser.cpp +++ b/Analyser/Static/AppleII/StaticAnalyser.cpp @@ -13,8 +13,16 @@ Analyser::Static::TargetList Analyser::Static::AppleII::GetTargets(const Media & auto target = std::make_unique(); 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));