forked from len0rd/rockbox
Adding an reset option to the rockboy menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28655 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
681302171b
commit
72b4c4ff3b
2 changed files with 8 additions and 2 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
#include "save.h"
|
#include "save.h"
|
||||||
#include "rtc-gb.h"
|
#include "rtc-gb.h"
|
||||||
#include "pcm.h"
|
#include "pcm.h"
|
||||||
|
#include "emu.h"
|
||||||
|
|
||||||
#define SLOT_COUNT 50
|
#define SLOT_COUNT 50
|
||||||
#define DESC_SIZE 20
|
#define DESC_SIZE 20
|
||||||
|
|
@ -89,7 +90,7 @@ int do_user_menu(void) {
|
||||||
|
|
||||||
MENUITEM_STRINGLIST(menu, "Rockboy Menu", NULL,
|
MENUITEM_STRINGLIST(menu, "Rockboy Menu", NULL,
|
||||||
"Load Game", "Save Game",
|
"Load Game", "Save Game",
|
||||||
"Options", "Quit");
|
"Options", "Reset", "Quit");
|
||||||
|
|
||||||
rockboy_pcm_init();
|
rockboy_pcm_init();
|
||||||
|
|
||||||
|
|
@ -108,7 +109,11 @@ int do_user_menu(void) {
|
||||||
case 2: /* Options */
|
case 2: /* Options */
|
||||||
do_opt_menu();
|
do_opt_menu();
|
||||||
break;
|
break;
|
||||||
case 3: /* Quit */
|
case 3: /* Reset */
|
||||||
|
emu_reset();
|
||||||
|
done=true;
|
||||||
|
break;
|
||||||
|
case 4: /* Quit */
|
||||||
ret = USER_MENU_QUIT;
|
ret = USER_MENU_QUIT;
|
||||||
done=true;
|
done=true;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -122,5 +122,6 @@ the gnuboy emulator. To start a game, open a ROM file saved as \fname{.gb} or
|
||||||
Pick one of a few predefined colour palettes.
|
Pick one of a few predefined colour palettes.
|
||||||
}
|
}
|
||||||
\end{description}
|
\end{description}
|
||||||
|
\item[Reset.] Resets the Emulator.
|
||||||
\item[Quit RockBoy.] Quits the Rockboy plugin.
|
\item[Quit RockBoy.] Quits the Rockboy plugin.
|
||||||
\end{description}
|
\end{description}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue