summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/ui/menu.cpp')
-rw-r--r--src/emu/ui/menu.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/emu/ui/menu.cpp b/src/emu/ui/menu.cpp
index 1d8ae588c0f..52c2eba048a 100644
--- a/src/emu/ui/menu.cpp
+++ b/src/emu/ui/menu.cpp
@@ -306,6 +306,17 @@ void ui_menu::item_append(ui_menu_item item)
// end of the menu
//-------------------------------------------------
+void ui_menu::item_append(ui_menu_item_type type)
+{
+ if (type == ui_menu_item_type::SEPARATOR)
+ item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
+}
+
+//-------------------------------------------------
+// item_append - append a new item to the
+// end of the menu
+//-------------------------------------------------
+
void ui_menu::item_append(const char *text, const char *subtext, UINT32 flags, void *ref, ui_menu_item_type type)
{
// only allow multiline as the first item