2018-04-14 16:12:12 +00:00
|
|
|
//
|
|
|
|
// StaticAnalyser.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 14/04/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-04-14 16:12:12 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "StaticAnalyser.hpp"
|
2018-04-22 04:21:57 +00:00
|
|
|
#include "Target.hpp"
|
2018-04-14 16:12:12 +00:00
|
|
|
|
2024-11-30 02:08:35 +00:00
|
|
|
Analyser::Static::TargetList Analyser::Static::AppleII::GetTargets(
|
|
|
|
const Media &media,
|
|
|
|
const std::string &,
|
|
|
|
TargetPlatform::IntType
|
|
|
|
) {
|
2019-12-22 04:34:25 +00:00
|
|
|
auto target = std::make_unique<Target>();
|
2018-04-22 04:21:57 +00:00
|
|
|
target->media = media;
|
|
|
|
|
2022-08-30 20:33:43 +00:00
|
|
|
// If any disks are present, attach a Disk II.
|
|
|
|
if(!target->media.disks.empty()) {
|
2018-05-03 23:37:32 +00:00
|
|
|
target->disk_controller = Target::DiskController::SixteenSector;
|
2022-08-30 20:33:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
2022-09-15 16:17:50 +00:00
|
|
|
target->scsi_controller = Target::SCSIController::AppleSCSI;
|
2022-08-30 20:33:43 +00:00
|
|
|
}
|
2018-04-24 04:14:45 +00:00
|
|
|
|
2018-04-22 04:21:57 +00:00
|
|
|
TargetList targets;
|
|
|
|
targets.push_back(std::move(target));
|
|
|
|
return targets;
|
2018-04-14 16:12:12 +00:00
|
|
|
}
|