Menu fixes, allow resetting UAE

This commit is contained in:
simon.kagstrom 2009-05-10 07:53:14 +00:00
parent 861f885609
commit 0091a32d28

View File

@ -93,19 +93,19 @@ void gui_handle_events (void)
} }
static const char *main_menu_messages[] = { static const char *main_menu_messages[] = {
/*02*/ "Floppy", /*00*/ "Floppy",
/*03*/ "^|df0|df1|df2|df3", /*01*/ "^|df0|df1|df2|df3",
/*04*/ "States", /*02*/ "States",
/*05*/ "^|Load|Save|Delete", /*03*/ "^|Load|Save|Delete",
/*06*/ "Keyboard", /*04*/ "Keyboard",
/*07*/ "^|Type|Macro|Bind", /*05*/ "^|Type|Macro|Bind",
/*08*/ "#1-------------------------------------", /*06*/ "#1-------------------------------------",
/*09*/ "Reset the C=64", /*07*/ "Reset UAE",
/*10*/ "Networking", /*08*/ "Networking",
/*11*/ "Options", /*09*/ "Options",
/*12*/ "Advanced Options", /*10*/ "Advanced Options",
/*13*/ "Help", /*11*/ "Help",
/*15*/ "Quit", /*12*/ "Quit",
NULL NULL
}; };
@ -125,8 +125,17 @@ void gui_display(int shortcut)
is_inited = 1; is_inited = 1;
} }
opt = menu_select_title("Main menu", main_menu_messages, submenus); opt = menu_select_title("Main menu", main_menu_messages, submenus);
if (opt == 12) switch(opt)
{
case 7:
uae_reset(1);
break;
case 12:
uae_quit(); uae_quit();
break;
default:
break;
}
} }
void gui_message (const char *format,...) void gui_message (const char *format,...)