2018-04-03 02:42:41 +00:00
|
|
|
//
|
|
|
|
// Target.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 02/04/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-04-03 02:42:41 +00:00
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2018-04-03 02:42:41 +00:00
|
|
|
|
2020-03-20 03:24:06 +00:00
|
|
|
#include "../../../Reflection/Enum.hpp"
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
2018-04-03 02:42:41 +00:00
|
|
|
#include "../StaticAnalyser.hpp"
|
2018-04-14 16:12:12 +00:00
|
|
|
#include <string>
|
2018-04-03 02:42:41 +00:00
|
|
|
|
2023-05-10 21:02:18 +00:00
|
|
|
namespace Analyser::Static::MSX {
|
2018-04-03 02:42:41 +00:00
|
|
|
|
2020-03-13 00:56:02 +00:00
|
|
|
struct Target: public ::Analyser::Static::Target, public Reflection::StructImpl<Target> {
|
2018-04-03 02:42:41 +00:00
|
|
|
bool has_disk_drive = false;
|
2023-05-14 02:17:09 +00:00
|
|
|
bool has_msx_music = true;
|
2018-04-14 16:12:12 +00:00
|
|
|
std::string loading_command;
|
2019-03-01 01:54:43 +00:00
|
|
|
|
2023-01-10 19:52:09 +00:00
|
|
|
ReflectableEnum(Model,
|
|
|
|
MSX1,
|
|
|
|
MSX2
|
|
|
|
);
|
2023-01-29 23:02:09 +00:00
|
|
|
Model model = Model::MSX2;
|
2023-01-10 19:52:09 +00:00
|
|
|
|
2020-03-12 03:28:38 +00:00
|
|
|
ReflectableEnum(Region,
|
2019-03-01 01:54:43 +00:00
|
|
|
Japan,
|
|
|
|
USA,
|
|
|
|
Europe
|
2020-03-12 03:25:29 +00:00
|
|
|
);
|
|
|
|
Region region = Region::USA;
|
|
|
|
|
2020-03-15 04:13:38 +00:00
|
|
|
Target(): Analyser::Static::Target(Machine::MSX) {
|
2020-03-12 03:25:29 +00:00
|
|
|
if(needs_declare()) {
|
|
|
|
DeclareField(has_disk_drive);
|
2023-05-13 02:09:15 +00:00
|
|
|
DeclareField(has_msx_music);
|
2020-03-12 03:25:29 +00:00
|
|
|
DeclareField(region);
|
|
|
|
AnnounceEnum(Region);
|
2023-01-10 19:52:09 +00:00
|
|
|
DeclareField(model);
|
|
|
|
AnnounceEnum(Model);
|
2020-03-12 03:25:29 +00:00
|
|
|
}
|
|
|
|
}
|
2018-04-03 02:42:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|