2019-10-04 02:10:10 +00:00
|
|
|
//
|
|
|
|
// StaticAnalyser.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 03/10/2019.
|
|
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "StaticAnalyser.hpp"
|
|
|
|
#include "Target.hpp"
|
|
|
|
|
2020-05-30 04:37:06 +00:00
|
|
|
Analyser::Static::TargetList Analyser::Static::AtariST::GetTargets(const Media &media, const std::string &, TargetPlatform::IntType) {
|
2019-10-04 02:10:10 +00:00
|
|
|
// This analyser can comprehend disks and mass-storage devices only.
|
|
|
|
if(media.disks.empty()) return {};
|
|
|
|
|
|
|
|
// As there is at least one usable media image, wave it through.
|
|
|
|
Analyser::Static::TargetList targets;
|
|
|
|
|
2020-03-15 04:13:38 +00:00
|
|
|
using Target = Analyser::Static::AtariST::Target;
|
2020-05-10 03:42:42 +00:00
|
|
|
auto *const target = new Target();
|
2019-10-04 02:10:10 +00:00
|
|
|
target->media = media;
|
|
|
|
targets.push_back(std::unique_ptr<Analyser::Static::Target>(target));
|
|
|
|
|
|
|
|
return targets;
|
|
|
|
}
|