mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-25 11:17:26 +00:00
Starts a switch to reflectable-style runtime options.
The Amstrad CPC and ZX80/81 have made the jump so far, subject to caveats. The macOS build is unlikely currently to work properly.
This commit is contained in:
@@ -22,7 +22,7 @@ MultiConfigurable::MultiConfigurable(const std::vector<std::unique_ptr<::Machine
|
||||
void MultiConfigurable::set_options(const std::unique_ptr<Reflection::Struct> &options) {
|
||||
}
|
||||
|
||||
std::unique_ptr<Reflection::Struct> MultiConfigurable::get_options(OptionsType type) {
|
||||
std::unique_ptr<Reflection::Struct> MultiConfigurable::get_options() {
|
||||
// TODO: this'll need to mash options together, maybe? Or just take the front?
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ class MultiConfigurable: public Configurable::Device {
|
||||
|
||||
// Below is the standard Configurable::Device interface; see there for documentation.
|
||||
void set_options(const std::unique_ptr<Reflection::Struct> &options) final;
|
||||
std::unique_ptr<Reflection::Struct> get_options(OptionsType type) final;
|
||||
std::unique_ptr<Reflection::Struct> get_options() final;
|
||||
// std::vector<std::unique_ptr<Configurable::Option>> get_options() final;
|
||||
// void set_selections(const Configurable::SelectionSet &selection_by_option) final;
|
||||
// Configurable::SelectionSet get_accurate_selections() final;
|
||||
|
||||
Reference in New Issue
Block a user