mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-28 12:11:50 +01:00
-fixed configured overlay setting not being applied on first start
-added left/right as page up/down keys in ROM browsers
This commit is contained in:
parent
6743bac508
commit
3f0547776b
@ -494,14 +494,11 @@ int FileSelector(int type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* go back one page */
|
/* go back one page */
|
||||||
else if (p & PAD_TRIGGER_L)
|
else if (p & (PAD_TRIGGER_L | PAD_BUTTON_LEFT))
|
||||||
{
|
{
|
||||||
selection -= 10;
|
selection -= 10;
|
||||||
if (selection < 0)
|
if (selection < 0)
|
||||||
{
|
selection = offset = 0;
|
||||||
selection = maxfiles - 1;
|
|
||||||
offset = selection - 10 + 1;
|
|
||||||
}
|
|
||||||
if (selection < offset)
|
if (selection < offset)
|
||||||
offset -= 10;
|
offset -= 10;
|
||||||
if (offset < 0)
|
if (offset < 0)
|
||||||
@ -509,13 +506,18 @@ int FileSelector(int type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* go forward one page */
|
/* go forward one page */
|
||||||
else if (p & PAD_TRIGGER_R)
|
else if (p & (PAD_TRIGGER_R | PAD_BUTTON_RIGHT))
|
||||||
{
|
{
|
||||||
selection += 10;
|
selection += 10;
|
||||||
if (selection > maxfiles - 1)
|
if (selection > maxfiles - 1)
|
||||||
selection = offset = 0;
|
{
|
||||||
|
selection = maxfiles - 1;
|
||||||
|
offset = selection - 10 + 1;
|
||||||
|
}
|
||||||
if ((selection - offset) >= 10)
|
if ((selection - offset) >= 10)
|
||||||
offset += 10;
|
offset += 10;
|
||||||
|
if (offset > maxfiles - 10)
|
||||||
|
offset = maxfiles - 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* quit */
|
/* quit */
|
||||||
|
@ -3419,7 +3419,7 @@ void mainmenu(void)
|
|||||||
gui_menu *m = &menu_main;
|
gui_menu *m = &menu_main;
|
||||||
|
|
||||||
/* Update main menu */
|
/* Update main menu */
|
||||||
if (!m->screenshot && cart.romsize)
|
if (!m->screenshot)
|
||||||
{
|
{
|
||||||
if (config.bg_overlay)
|
if (config.bg_overlay)
|
||||||
{
|
{
|
||||||
@ -3437,6 +3437,9 @@ void mainmenu(void)
|
|||||||
bg_list[1].state &= ~IMAGE_VISIBLE;
|
bg_list[1].state &= ~IMAGE_VISIBLE;
|
||||||
bg_saves[2].state &= ~IMAGE_VISIBLE;
|
bg_saves[2].state &= ~IMAGE_VISIBLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cart.romsize)
|
||||||
|
{
|
||||||
m->screenshot = 128;
|
m->screenshot = 128;
|
||||||
m->bg_images[0].state &= ~IMAGE_VISIBLE;
|
m->bg_images[0].state &= ~IMAGE_VISIBLE;
|
||||||
m->items[0].y -= 90;
|
m->items[0].y -= 90;
|
||||||
@ -3464,6 +3467,7 @@ void mainmenu(void)
|
|||||||
menu_main.buttons[8].shift[2] = 2;
|
menu_main.buttons[8].shift[2] = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GUI_InitMenu(m);
|
GUI_InitMenu(m);
|
||||||
GUI_DrawMenuFX(m,10,0);
|
GUI_DrawMenuFX(m,10,0);
|
||||||
|
Loading…
Reference in New Issue
Block a user