Remove playback control from XWorld, fix comments a bit
XWorld grabs the audio buffer when it starts, so there can be no playback, making the playback control menu useless :P Change-Id: Ia4e2c207f41619ef9b028917130d6dbf7dfba054
This commit is contained in:
parent
761e7987c8
commit
2d41866d5a
1 changed files with 37 additions and 44 deletions
|
@ -23,16 +23,17 @@
|
||||||
/* vertical stride support (as of Dec. 2014, only the M:Robe 500 has a color,
|
/* vertical stride support (as of Dec. 2014, only the M:Robe 500 has a color,
|
||||||
vertical stride LCD) */
|
vertical stride LCD) */
|
||||||
|
|
||||||
/* monochrome/grayscale support (many of these targets have vertical strides,
|
/* monochrome/grayscale support (many grayscale targets have vertical strides,
|
||||||
so get that working first!) */
|
so get that working first!) */
|
||||||
|
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
|
|
||||||
#include "lib/display_text.h"
|
#include "lib/display_text.h"
|
||||||
#include "lib/helper.h"
|
#include "lib/helper.h"
|
||||||
#include "lib/playback_control.h"
|
|
||||||
#include "lib/pluginlib_actions.h"
|
#include "lib/pluginlib_actions.h"
|
||||||
#include "lib/pluginlib_bmp.h"
|
#include "lib/pluginlib_bmp.h"
|
||||||
#include "lib/pluginlib_exit.h"
|
#include "lib/pluginlib_exit.h"
|
||||||
|
|
||||||
#include "sys.h"
|
#include "sys.h"
|
||||||
#include "parts.h"
|
#include "parts.h"
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
|
@ -293,16 +294,15 @@ void sys_menu(struct System* sys)
|
||||||
MENUITEM_STRINGLIST(menu, "XWorld Menu", mainmenu_cb,
|
MENUITEM_STRINGLIST(menu, "XWorld Menu", mainmenu_cb,
|
||||||
"Resume Game", /* 0 */
|
"Resume Game", /* 0 */
|
||||||
"Start New Game", /* 1 */
|
"Start New Game", /* 1 */
|
||||||
"Playback Control", /* 2 */
|
"Video Settings", /* 2 */
|
||||||
"Video Settings", /* 3 */
|
"Sound Settings", /* 3 */
|
||||||
"Sound Settings", /* 4 */
|
"Fast Mode", /* 4 */
|
||||||
"Fast Mode", /* 5 */
|
"Help", /* 5 */
|
||||||
"Help", /* 6 */
|
"Reset Settings", /* 6 */
|
||||||
"Reset Settings", /* 7 */
|
"Load", /* 7 */
|
||||||
"Load", /* 8 */
|
"Save", /* 8 */
|
||||||
"Save", /* 9 */
|
"Quit without Saving", /* 9 */
|
||||||
"Quit without Saving", /* 10 */
|
"Save and Quit"); /* 10 */
|
||||||
"Save and Quit"); /* 11 */
|
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
while(!quit)
|
while(!quit)
|
||||||
{
|
{
|
||||||
|
@ -316,41 +316,38 @@ void sys_menu(struct System* sys)
|
||||||
quit = true;
|
quit = true;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
playback_control(NULL);
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
do_video_settings(sys);
|
do_video_settings(sys);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 3:
|
||||||
do_sound_settings(sys);
|
do_sound_settings(sys);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 4:
|
||||||
rb->set_bool("Fast Mode", &sys->e->vm._fastMode);
|
rb->set_bool("Fast Mode", &sys->e->vm._fastMode);
|
||||||
sys_save_settings(sys);
|
sys_save_settings(sys);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 5:
|
||||||
sys_do_help();
|
sys_do_help();
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 6:
|
||||||
sys_reset_settings(sys);
|
sys_reset_settings(sys);
|
||||||
sys_save_settings(sys);
|
sys_save_settings(sys);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 7:
|
||||||
rb->splash(0, "Loading...");
|
rb->splash(0, "Loading...");
|
||||||
sys->loaded = engine_loadGameState(sys->e, 0);
|
sys->loaded = engine_loadGameState(sys->e, 0);
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 8:
|
||||||
sys->e->_stateSlot = 0;
|
sys->e->_stateSlot = 0;
|
||||||
rb->splash(0, "Saving...");
|
rb->splash(0, "Saving...");
|
||||||
engine_saveGameState(sys->e, sys->e->_stateSlot, "quicksave");
|
engine_saveGameState(sys->e, sys->e->_stateSlot, "quicksave");
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 9:
|
||||||
engine_deleteGameState(sys->e, 0);
|
engine_deleteGameState(sys->e, 0);
|
||||||
exit(PLUGIN_OK);
|
exit(PLUGIN_OK);
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 10:
|
||||||
/* saves are NOT deleted on loading */
|
/* saves are NOT deleted on loading */
|
||||||
exit(PLUGIN_OK);
|
exit(PLUGIN_OK);
|
||||||
break;
|
break;
|
||||||
|
@ -606,16 +603,15 @@ static void do_pause_menu(struct System* sys)
|
||||||
MENUITEM_STRINGLIST(menu, "XWorld Menu", NULL,
|
MENUITEM_STRINGLIST(menu, "XWorld Menu", NULL,
|
||||||
"Resume Game", /* 0 */
|
"Resume Game", /* 0 */
|
||||||
"Start New Game", /* 1 */
|
"Start New Game", /* 1 */
|
||||||
"Playback Control", /* 2 */
|
"Video Settings", /* 2 */
|
||||||
"Video Settings", /* 3 */
|
"Sound Settings", /* 3 */
|
||||||
"Sound Settings", /* 4 */
|
"Fast Mode", /* 4 */
|
||||||
"Fast Mode", /* 5 */
|
"Enter Code", /* 5 */
|
||||||
"Enter Code", /* 6 */
|
"Help", /* 6 */
|
||||||
"Help", /* 7 */
|
"Reset Settings", /* 7 */
|
||||||
"Reset Settings", /* 8 */
|
"Load", /* 8 */
|
||||||
"Load", /* 9 */
|
"Save", /* 9 */
|
||||||
"Save", /* 10 */
|
"Quit"); /* 10 */
|
||||||
"Quit"); /* 11 */
|
|
||||||
|
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
while(!quit)
|
while(!quit)
|
||||||
|
@ -630,42 +626,39 @@ static void do_pause_menu(struct System* sys)
|
||||||
quit = true;
|
quit = true;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
playback_control(NULL);
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
do_video_settings(sys);
|
do_video_settings(sys);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 3:
|
||||||
do_sound_settings(sys);
|
do_sound_settings(sys);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 4:
|
||||||
rb->set_bool("Fast Mode", &sys->e->vm._fastMode);
|
rb->set_bool("Fast Mode", &sys->e->vm._fastMode);
|
||||||
sys_save_settings(sys);
|
sys_save_settings(sys);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 5:
|
||||||
sys->input.code = true;
|
sys->input.code = true;
|
||||||
quit = true;
|
quit = true;
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 6:
|
||||||
sys_do_help();
|
sys_do_help();
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 7:
|
||||||
sys_reset_settings(sys);
|
sys_reset_settings(sys);
|
||||||
sys_save_settings(sys);
|
sys_save_settings(sys);
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 8:
|
||||||
rb->splash(0, "Loading...");
|
rb->splash(0, "Loading...");
|
||||||
sys->loaded = engine_loadGameState(sys->e, 0);
|
sys->loaded = engine_loadGameState(sys->e, 0);
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
quit = true;
|
quit = true;
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 9:
|
||||||
sys->e->_stateSlot = 0;
|
sys->e->_stateSlot = 0;
|
||||||
rb->splash(0, "Saving...");
|
rb->splash(0, "Saving...");
|
||||||
engine_saveGameState(sys->e, sys->e->_stateSlot, "quicksave");
|
engine_saveGameState(sys->e, sys->e->_stateSlot, "quicksave");
|
||||||
rb->lcd_update();
|
rb->lcd_update();
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 10:
|
||||||
exit(PLUGIN_OK);
|
exit(PLUGIN_OK);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue