Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 0 additions & 100 deletions menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "menu.h"
#include "support/zaparoo/alt_launcher.h"
#include "support/zaparoo/alt_launcher_menu.h"
#include "support/zaparoo/launcher_pages.h"
#include "support/zaparoo/menu_rbf.h"
#include "user_io.h"
#include "debug.h"
Expand Down Expand Up @@ -86,15 +85,6 @@ enum MENU
MENU_MISC1,
MENU_MISC2,

// Right-side companion to System Settings on the alt-launcher menu core.
// Top "Zaparoo Frontend" page lists sub-pages (Video) and an exit row;
// the Video sub-page hosts CRT mode + H/V centering offsets and binds
// left/right arrows to value adjustment.
MENU_ZAPAROO_LAUNCHER1,
MENU_ZAPAROO_LAUNCHER2,
MENU_ZAPAROO_VIDEO1,
MENU_ZAPAROO_VIDEO2,

MENU_SELECT_INI1,
MENU_SELECT_INI2,

Expand Down Expand Up @@ -6913,100 +6903,10 @@ void HandleUI(void)
{
menustate = MENU_MISC1;
}
else if (right && alt_launcher_configured())
{
menustate = MENU_ZAPAROO_LAUNCHER1;
menusub = 0;
}

if (!hold_cnt && reboot_req) fpga_load_rbf(menu_rbf_name());
break;

/******************************************************************/
/* zaparoo frontend pages (right-side sibling of System) */
/******************************************************************/
case MENU_ZAPAROO_LAUNCHER1:
if (!alt_launcher_configured())
{
menustate = MENU_NONE1;
break;
}
helptext_idx = 0;
parentstate = menustate;
launcher_page_render(menusub, &menumask);
menustate = MENU_ZAPAROO_LAUNCHER2;
break;

case MENU_ZAPAROO_LAUNCHER2:
if (menu)
{
menustate = MENU_NONE1;
break;
}
if (left)
{
menustate = MENU_SYSTEM1;
menusub = 0;
break;
}
if (right && menusub == 0)
{
menustate = MENU_ZAPAROO_VIDEO1;
menusub = 0;
break;
}
if (select)
{
int act = launcher_page_handle_select(menusub);
if (act == 1)
{
menustate = MENU_ZAPAROO_VIDEO1;
menusub = 0;
}
else if (act == 0)
{
menustate = MENU_NONE1;
}
}
break;

case MENU_ZAPAROO_VIDEO1:
if (!alt_launcher_configured())
{
menustate = MENU_NONE1;
break;
}
helptext_idx = 0;
parentstate = menustate;
video_page_render(menusub, &menumask);
menustate = MENU_ZAPAROO_VIDEO2;
break;

case MENU_ZAPAROO_VIDEO2:
if (menu)
{
menustate = MENU_ZAPAROO_LAUNCHER1;
menusub = 0;
break;
}
if (left || right || plus || minus)
{
video_page_adjust(menusub, (right || plus) ? +1 : -1);
menustate = MENU_ZAPAROO_VIDEO1;
break;
}
if (select)
{
if (!video_page_handle_select(menusub))
{
menustate = MENU_ZAPAROO_LAUNCHER1;
menusub = 0;
break;
}
menustate = MENU_ZAPAROO_VIDEO1;
}
break;

case MENU_JOYSYSMAP:
strcpy(joy_bnames[SYS_BTN_A - DPAD_NAMES], "A");
strcpy(joy_bnames[SYS_BTN_B - DPAD_NAMES], "B");
Expand Down
Loading