Allow to reboot into UEFI Firmware setup interface after pressing F10 in the boot menu
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 32s
Builds / ExectOS (i686) (push) Successful in 31s

This commit is contained in:
Rafal Kupiec 2024-03-19 17:04:14 +01:00
parent 94e6ca7aec
commit e263effe13
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -215,7 +215,8 @@ BlDisplayBootMenu()
L"Press 'e' key to edit the highlighted menu entry.\n" L"Press 'e' key to edit the highlighted menu entry.\n"
L"Press 's' key to exit into XTLDR shell (enters advanced mode).\n" L"Press 's' key to exit into XTLDR shell (enters advanced mode).\n"
L" \n" L" \n"
L"F1 shows this help, F11 reboots the machine and F12 turns it off.\n" L"F1 shows this help, F10 reboots into UEFI firmware interface,\n"
L"F11 reboots the machine and F12 turns it off.\n"
L" \n" L" \n"
L" \n" L" \n"
L"XTLDR is a part of the ExectOS Operating System.\n" L"XTLDR is a part of the ExectOS Operating System.\n"
@ -224,6 +225,15 @@ BlDisplayBootMenu()
/* Break from boot menu event loop to redraw whole boot menu */ /* Break from boot menu event loop to redraw whole boot menu */
break; break;
} }
else if(Key.ScanCode == 0x14)
{
/* F10 key pressed, reboot into UEFI setup interface */
BlEnterFirmwareSetup();
BlDisplayErrorDialog(L"XTLDR", L"Reboot into firmware setup interface not supported!");
/* Break from boot menu event loop to redraw whole boot menu */
break;
}
else if(Key.ScanCode == 0x15) else if(Key.ScanCode == 0x15)
{ {
/* F11 key pressed, reboot the machine */ /* F11 key pressed, reboot the machine */