2021-07-17 00:15:36 +00:00
|
|
|
//
|
|
|
|
// StaticAnalyser.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 16/07/2021.
|
|
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "StaticAnalyser.hpp"
|
|
|
|
#include "Target.hpp"
|
|
|
|
|
2024-11-30 02:08:35 +00:00
|
|
|
Analyser::Static::TargetList Analyser::Static::Amiga::GetTargets(
|
|
|
|
const Media &media,
|
|
|
|
const std::string &,
|
|
|
|
TargetPlatform::IntType
|
|
|
|
) {
|
2021-07-17 00:15:36 +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;
|
|
|
|
|
|
|
|
using Target = Analyser::Static::Amiga::Target;
|
|
|
|
auto *const target = new Target();
|
|
|
|
target->media = media;
|
|
|
|
targets.push_back(std::unique_ptr<Analyser::Static::Target>(target));
|
|
|
|
|
|
|
|
return targets;
|
|
|
|
}
|