mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
311458f41f
Also cleans up some leftover parts elsewhere.
44 lines
1.0 KiB
C++
44 lines
1.0 KiB
C++
//
|
|
// Macintosh.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 03/05/2019.
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef Macintosh_hpp
|
|
#define Macintosh_hpp
|
|
|
|
#include "../../../Configurable/Configurable.hpp"
|
|
#include "../../../Configurable/StandardOptions.hpp"
|
|
#include "../../../Analyser/Static/StaticAnalyser.hpp"
|
|
#include "../../ROMMachine.hpp"
|
|
|
|
namespace Apple {
|
|
namespace Macintosh {
|
|
|
|
class Machine {
|
|
public:
|
|
virtual ~Machine();
|
|
|
|
/// Creates and returns a Macintosh.
|
|
static Machine *Macintosh(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
|
|
|
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();
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* Macintosh_hpp */
|