1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-18 17:06:15 +00:00
CLK/Analyser/Static/MSX/Target.hpp

52 lines
1014 B
C++
Raw Normal View History

//
// Target.hpp
// Clock Signal
//
// Created by Thomas Harte on 02/04/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
//
#ifndef Analyser_Static_MSX_Target_h
#define Analyser_Static_MSX_Target_h
#include "../../../Reflection/Enum.hpp"
#include "../../../Reflection/Struct.hpp"
#include "../StaticAnalyser.hpp"
#include <string>
2023-05-10 21:02:18 +00:00
namespace Analyser::Static::MSX {
struct Target: public ::Analyser::Static::Target, public Reflection::StructImpl<Target> {
bool has_disk_drive = false;
2023-05-14 02:17:09 +00:00
bool has_msx_music = true;
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
ReflectableEnum(Region,
2019-03-01 01:54:43 +00:00
Japan,
USA,
Europe
);
Region region = Region::USA;
Target(): Analyser::Static::Target(Machine::MSX) {
if(needs_declare()) {
DeclareField(has_disk_drive);
2023-05-13 02:09:15 +00:00
DeclareField(has_msx_music);
DeclareField(region);
AnnounceEnum(Region);
2023-01-10 19:52:09 +00:00
DeclareField(model);
AnnounceEnum(Model);
}
}
};
}
#endif /* Analyser_Static_MSX_Target_h */