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.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef MasterSystem_hpp
|
|
|
|
#define MasterSystem_hpp
|
|
|
|
|
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
|
|
|
|
|
|
|
class Machine {
|
|
|
|
public:
|
|
|
|
virtual ~Machine();
|
|
|
|
static Machine *MasterSystem(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> {
|
|
|
|
friend Configurable::DisplayOption<Options>;
|
|
|
|
public:
|
|
|
|
Options(Configurable::OptionsType type) :
|
|
|
|
Configurable::DisplayOption<Options>(type == Configurable::OptionsType::UserFriendly ? Configurable::Display::RGB : Configurable::Display::CompositeColour) {
|
|
|
|
if(needs_declare()) {
|
|
|
|
declare_display_option();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2018-09-22 02:13:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2018-09-21 02:04:28 +00:00
|
|
|
|
|
|
|
#endif /* MasterSystem_hpp */
|