mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 21:44:22 +01:00
Correct numbering and handle exit
This commit is contained in:
parent
f4db8a7b36
commit
1989da1069
@ -14,19 +14,19 @@ public:
|
|||||||
MainMenu(Font *font) : Menu(font)
|
MainMenu(Font *font) : Menu(font)
|
||||||
{
|
{
|
||||||
static const char *messages[] = {
|
static const char *messages[] = {
|
||||||
/*02*/ "File",
|
/*00*/ "File",
|
||||||
/*03*/ "^|Insert|Start",
|
/*01*/ "^|Insert|Start",
|
||||||
/*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*/ " ",
|
/*06*/ " ",
|
||||||
/*09*/ "Reset the C=64",
|
/*07*/ "Reset the C=64",
|
||||||
/*10*/ "Networking",
|
/*08*/ "Networking",
|
||||||
/*11*/ "Options",
|
/*09*/ "Options",
|
||||||
/*12*/ "Advanced Options",
|
/*10*/ "Advanced Options",
|
||||||
/*13*/ "Help",
|
/*11*/ "Help",
|
||||||
/*15*/ "Quit",
|
/*12*/ "Quit",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -36,6 +36,8 @@ public:
|
|||||||
virtual void selectCallback(int which)
|
virtual void selectCallback(int which)
|
||||||
{
|
{
|
||||||
printf("entry %d selected: %s\n", which, this->pp_msgs[which]);
|
printf("entry %d selected: %s\n", which, this->pp_msgs[which]);
|
||||||
|
if (which == 12)
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void escapeCallback(int which)
|
virtual void escapeCallback(int which)
|
||||||
|
Loading…
Reference in New Issue
Block a user