MGL: support adf mounting in Minimig.

This commit is contained in:
Sorgelig
2022-03-03 23:44:42 +08:00
parent 2e34dcae35
commit f0a7728ea2
2 changed files with 18 additions and 2 deletions

View File

@@ -5163,6 +5163,16 @@ void HandleUI(void)
menustate = MENU_MINIMIG_MAIN2;
parentstate = MENU_MINIMIG_MAIN1;
if (!mgl->done)
{
if (mgl->item[mgl->current].index < 4)
{
menusub = mgl->item[mgl->current].index;
menustate = MENU_MINIMIG_ADFFILE_SELECTED;
break;
}
}
break;
case MENU_MINIMIG_MAIN2:
@@ -5269,11 +5279,17 @@ void HandleUI(void)
break;
case MENU_MINIMIG_ADFFILE_SELECTED:
if (!mgl->done) snprintf(selPath, sizeof(selPath), "%s/%s", HomeDir(), mgl->item[mgl->current].path);
memcpy(Selected_F[menusub], selPath, sizeof(Selected_F[menusub]));
recent_update(SelectedDir, selPath, SelectedLabel, 0);
if (mgl->done) recent_update(SelectedDir, selPath, SelectedLabel, 0);
InsertFloppy(&df[menusub], selPath);
if (menusub < drives) menusub++;
menustate = MENU_MINIMIG_MAIN1;
if (!mgl->done)
{
mgl->state = 2;
menustate = MENU_NONE1;
}
break;
case MENU_MINIMIG_LOADCONFIG1: