2018-09-21 02:04:28 +00:00
|
|
|
//
|
|
|
|
// MasterSystem.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 20/09/2018.
|
|
|
|
// Copyright © 2018 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2018-09-21 02:04:28 +00:00
|
|
|
|
2020-03-18 22:26:22 +00:00
|
|
|
#include "../../Configurable/Configurable.hpp"
|
|
|
|
#include "../../Configurable/StandardOptions.hpp"
|
2018-09-22 02:13:07 +00:00
|
|
|
#include "../../Analyser/Static/StaticAnalyser.hpp"
|
|
|
|
#include "../ROMMachine.hpp"
|
|
|
|
|
2020-03-16 03:48:53 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Sega::MasterSystem {
|
2018-09-22 02:13:07 +00:00
|
|
|
|
2024-12-07 16:15:38 +00:00
|
|
|
struct Machine {
|
|
|
|
virtual ~Machine() = default;
|
|
|
|
static std::unique_ptr<Machine> MasterSystem(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::RGB : Configurable::Display::CompositeColour) {}
|
|
|
|
|
|
|
|
private:
|
|
|
|
Options() : Options(Configurable::OptionsType::UserFriendly) {}
|
|
|
|
|
|
|
|
friend Reflection::StructImpl<Options>;
|
|
|
|
void declare_fields() {
|
|
|
|
declare_display_option();
|
|
|
|
}
|
|
|
|
};
|
2018-09-22 02:13:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|