pcecd: fix multifile CD, adjust default menu position.

This commit is contained in:
sorgelig
2020-04-25 08:11:38 +08:00
parent ce45d3f2da
commit d5cd08bde9
5 changed files with 34 additions and 59 deletions

View File

@@ -1155,6 +1155,7 @@ void HandleUI(void)
}
else
{
parentstate = MENU_NONE1;
menustate = MENU_8BIT_MAIN1;
}
}
@@ -1325,6 +1326,7 @@ void HandleUI(void)
hdmask = spi_w(0);
DisableIO();
user_io_read_confstr();
uint32_t s_entry = 0;
int entry = 0;
while(1)
{
@@ -1384,6 +1386,7 @@ void HandleUI(void)
// check for 'F'ile or 'S'D image strings
if ((p[0] == 'F') || (p[0] == 'S'))
{
if (p[0] == 'S') s_entry = selentry;
substrcpy(s, p, 2);
if (strlen(s))
{
@@ -1518,6 +1521,12 @@ void HandleUI(void)
menusub_last = selentry;
menumask = (menumask << 1) | 1;
if (parentstate == MENU_NONE1 && is_pce() && pcecd_using_cd() && menusub != s_entry)
{
menusub = s_entry;
continue;
}
if (!adjvisible) break;
firstmenu += adjvisible;
}