mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Upgrade to an Enhanced IIe if hard drives are present.
This commit is contained in:
parent
6fa4e379d2
commit
f50ce7f137
@ -13,8 +13,16 @@ Analyser::Static::TargetList Analyser::Static::AppleII::GetTargets(const Media &
|
|||||||
auto target = std::make_unique<Target>();
|
auto target = std::make_unique<Target>();
|
||||||
target->media = media;
|
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;
|
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;
|
TargetList targets;
|
||||||
targets.push_back(std::move(target));
|
targets.push_back(std::move(target));
|
||||||
|
Loading…
Reference in New Issue
Block a user