2017-11-25 01:43:26 +00:00
|
|
|
//
|
|
|
|
// MSX.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 24/11/2017.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-11-25 01:43:26 +00:00
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2017-11-25 01:43:26 +00:00
|
|
|
|
2020-03-18 22:26:22 +00:00
|
|
|
#include "../../Configurable/Configurable.hpp"
|
|
|
|
#include "../../Configurable/StandardOptions.hpp"
|
2018-07-11 00:00:46 +00:00
|
|
|
#include "../../Analyser/Static/StaticAnalyser.hpp"
|
|
|
|
#include "../ROMMachine.hpp"
|
|
|
|
|
|
|
|
#include <memory>
|
2017-12-29 23:36:42 +00:00
|
|
|
|
2017-11-25 01:43:26 +00:00
|
|
|
namespace MSX {
|
|
|
|
|
|
|
|
class Machine {
|
|
|
|
public:
|
2024-02-17 02:47:23 +00:00
|
|
|
virtual ~Machine() = default;
|
2024-01-13 03:03:19 +00:00
|
|
|
static std::unique_ptr<Machine> MSX(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
2020-03-18 22:26:22 +00:00
|
|
|
|
|
|
|
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options>, public Configurable::QuickloadOption<Options> {
|
|
|
|
friend Configurable::DisplayOption<Options>;
|
|
|
|
friend Configurable::QuickloadOption<Options>;
|
|
|
|
public:
|
|
|
|
Options(Configurable::OptionsType type) :
|
|
|
|
Configurable::DisplayOption<Options>(type == Configurable::OptionsType::UserFriendly ? Configurable::Display::RGB : Configurable::Display::CompositeColour),
|
|
|
|
Configurable::QuickloadOption<Options>(type == Configurable::OptionsType::UserFriendly) {
|
|
|
|
if(needs_declare()) {
|
|
|
|
declare_display_option();
|
|
|
|
declare_quickload_option();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2017-11-25 01:43:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|