mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-16 16:28:59 +00:00
26 lines
816 B
C++
26 lines
816 B
C++
//
|
|
// StaticAnalyser.cpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 02/06/2019.
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#include "StaticAnalyser.hpp"
|
|
#include "Target.hpp"
|
|
|
|
Analyser::Static::TargetList Analyser::Static::Macintosh::GetTargets(const Media &media, const std::string &file_name, TargetPlatform::IntType potential_platforms) {
|
|
// This analyser can comprehend disks and mass-storage devices only.
|
|
if(media.disks.empty() && media.mass_storage_devices.empty()) return {};
|
|
|
|
// As there is at least one usable media image, wave it through.
|
|
Analyser::Static::TargetList targets;
|
|
|
|
using Target = Analyser::Static::Macintosh::Target;
|
|
auto *target = new Target;
|
|
target->media = media;
|
|
targets.push_back(std::unique_ptr<Analyser::Static::Target>(target));
|
|
|
|
return targets;
|
|
}
|