XTLDR Rewrite #7

Merged
belliash merged 184 commits from xtldr_rewrite into master 2024-01-09 18:51:04 +01:00
Showing only changes of commit fc3d236405 - Show all commits

View File

@ -300,6 +300,15 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
return Status;
}
/* Load boot loader modules */
Status = BlLoadModules(BlGetConfigValue(L"MODULES"));
if(Status != STATUS_EFI_SUCCESS)
{
/* Failed to load modules */
BlDebugPrint(L"ERROR: Failed to load XTLDR modules (Status Code: 0x%lx)\n", Status);
BlDisplayErrorDialog(L"XTLDR", L"Failed to load some XTLDR modules.");
}
/* Discover and enumerate EFI block devices */
Status = BlEnumerateBlockDevices();
if(Status != STATUS_EFI_SUCCESS)
@ -309,10 +318,6 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
return Status;
}
BlLoadModules(BlGetConfigValue(L"MODULES"));
BlLoadModule(L"DUMMY");
BlConsolePrint(L"\n\n\n\n\n\n\n\nList of loaded modules:");
PLIST_ENTRY ModuleListEntry;