mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-12 08:30:05 +00:00
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
//
|
|
// ColecoVision.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 23/02/2018.
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "../../Configurable/Configurable.hpp"
|
|
#include "../../Configurable/StandardOptions.hpp"
|
|
#include "../../Analyser/Static/StaticAnalyser.hpp"
|
|
#include "../ROMMachine.hpp"
|
|
|
|
#include <memory>
|
|
|
|
namespace Coleco::Vision {
|
|
|
|
struct Machine {
|
|
virtual ~Machine() = default;
|
|
static std::unique_ptr<Machine> ColecoVision(const Analyser::Static::Target *, const ROMMachine::ROMFetcher &);
|
|
|
|
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options> {
|
|
friend Configurable::DisplayOption<Options>;
|
|
public:
|
|
Options(Configurable::OptionsType type) :
|
|
Configurable::DisplayOption<Options>(type == Configurable::OptionsType::UserFriendly ?
|
|
Configurable::Display::SVideo : Configurable::Display::CompositeColour) {}
|
|
|
|
private:
|
|
Options() : Options(Configurable::OptionsType::UserFriendly) {}
|
|
|
|
friend Reflection::StructImpl<Options>;
|
|
void declare_fields() {
|
|
declare_display_option();
|
|
limit_enum(&output, Configurable::Display::SVideo, Configurable::Display::CompositeColour, -1);
|
|
}
|
|
};
|
|
};
|
|
|
|
}
|