diff options
author | npwoods <npwoods@mess.org> | 2019-08-04 21:20:59 -0400 |
---|---|---|
committer | npwoods <npwoods@mess.org> | 2019-08-04 21:20:59 -0400 |
commit | 17e194de8f6ba0deb4d75ff683691ad605ff66df (patch) | |
tree | ab1da32e986d58498a63c8a4dfe492b501954f70 /src/frontend/mame/ui/miscmenu.cpp | |
parent | d3383c54ab9cb00e956e3f78dfb0cffa903fdfe7 (diff) |
Follow up to previous listxml_refactor PR (nw)
Specifically, this simplifies that change by collapsing the newly
introduced enum info_xml_creator::devices_disposition into a bool, more
resembling what was there before.
It occurred to me that having a tristate was unnecessary, because the
need for filtering could be expressed by a null std::function for the filter
Diffstat (limited to 'src/frontend/mame/ui/miscmenu.cpp')
-rw-r--r-- | src/frontend/mame/ui/miscmenu.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/miscmenu.cpp b/src/frontend/mame/ui/miscmenu.cpp index 8dea46aab79..f79125ee7e1 100644 --- a/src/frontend/mame/ui/miscmenu.cpp +++ b/src/frontend/mame/ui/miscmenu.cpp @@ -602,13 +602,11 @@ void menu_export::handle() }; // do we want to show devices? - info_xml_creator::devices_disposition devdisp = (uintptr_t(menu_event->itemref) == 1) - ? info_xml_creator::devices_disposition::FILTERED - : info_xml_creator::devices_disposition::NONE; + bool include_devices = uintptr_t(menu_event->itemref) == 1; // and do the dirty work info_xml_creator creator(machine().options()); - creator.output(pfile, filter, devdisp); + creator.output(pfile, filter, include_devices); fclose(pfile); machine().popmessage(_("%s.xml saved under ui folder."), filename.c_str()); } |