machine_type.set("slotoptions", sol::property([this](running_machine &r) {
std::string result;
for (device_slot_interface &slot : slot_interface_iterator(r.root_device()))
{
if (slot.has_selectable_options())
{
std::string specified_value = machine().options().slot_option(slot.slot_name()).specified_value();
if (specified_value.compare(std::string("")) != 0)
{
result += (std::string("-")+std::string(slot.slot_name())+" "+
specified_value.c_str()+
std::string("\n"));
}
}
}
return result;
}));
machine_type.set("slotoptionsfull", sol::property([this](running_machine &r) {
std::string result;
for (device_slot_interface &slot : slot_interface_iterator(r.root_device()))
{
// if (slot.has_selectable_options())
{
{
result += (std::string("-")+std::string(slot.slot_name())+" "+
machine().options().slot_option(slot.slot_name()).value().c_str()+
std::string("\n"));
}
}
}
return result;
}));