mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-22 10:39:19 +01:00
Menu fixes, allow resetting UAE
This commit is contained in:
parent
861f885609
commit
0091a32d28
@ -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,...)
|
||||||
|
Loading…
Reference in New Issue
Block a user