mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-13 15:31:05 +00:00
49 lines
910 B
C++
49 lines
910 B
C++
//
|
|
// Target.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 02/04/2018.
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
#include "../../../Reflection/Struct.hpp"
|
|
#include "../StaticAnalyser.hpp"
|
|
#include <string>
|
|
|
|
namespace Analyser::Static::MSX {
|
|
|
|
struct Target: public ::Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
|
bool has_disk_drive = false;
|
|
bool has_msx_music = true;
|
|
std::string loading_command;
|
|
|
|
ReflectableEnum(Model,
|
|
MSX1,
|
|
MSX2
|
|
);
|
|
Model model = Model::MSX2;
|
|
|
|
ReflectableEnum(Region,
|
|
Japan,
|
|
USA,
|
|
Europe
|
|
);
|
|
Region region = Region::USA;
|
|
|
|
Target(): Analyser::Static::Target(Machine::MSX) {
|
|
if(needs_declare()) {
|
|
DeclareField(has_disk_drive);
|
|
DeclareField(has_msx_music);
|
|
DeclareField(region);
|
|
AnnounceEnum(Region);
|
|
DeclareField(model);
|
|
AnnounceEnum(Model);
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|