2019-05-04 02:16:07 +00:00
|
|
|
//
|
|
|
|
// Macintosh.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 03/05/2019.
|
|
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2019-05-04 02:16:07 +00:00
|
|
|
|
2020-03-19 01:50:02 +00:00
|
|
|
#include "../../../Configurable/Configurable.hpp"
|
|
|
|
#include "../../../Configurable/StandardOptions.hpp"
|
2019-05-04 02:16:07 +00:00
|
|
|
#include "../../../Analyser/Static/StaticAnalyser.hpp"
|
|
|
|
#include "../../ROMMachine.hpp"
|
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Apple::Macintosh {
|
2019-05-04 02:16:07 +00:00
|
|
|
|
|
|
|
class Machine {
|
|
|
|
public:
|
2024-02-17 02:47:23 +00:00
|
|
|
virtual ~Machine() = default;
|
2019-05-04 02:16:07 +00:00
|
|
|
|
|
|
|
/// Creates and returns a Macintosh.
|
2024-01-13 03:03:19 +00:00
|
|
|
static std::unique_ptr<Machine> Macintosh(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
2020-03-19 01:50:02 +00:00
|
|
|
|
|
|
|
class Options: public Reflection::StructImpl<Options>, public Configurable::QuickbootOption<Options> {
|
|
|
|
friend Configurable::QuickbootOption<Options>;
|
|
|
|
public:
|
|
|
|
Options(Configurable::OptionsType type) :
|
|
|
|
Configurable::QuickbootOption<Options>(type == Configurable::OptionsType::UserFriendly) {
|
|
|
|
if(needs_declare()) {
|
|
|
|
declare_quickboot_option();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2019-05-04 02:16:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|