Refactor, part 7; register XTLDR protocol
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
XTCDECL
|
||||
VOID
|
||||
BlpConfigParseCommandLine(VOID)
|
||||
BlpParseCommandLineOptions(VOID)
|
||||
{
|
||||
EFI_GUID LIPGuid = EFI_LOADED_IMAGE_PROTOCOL_GUID;
|
||||
PEFI_LOADED_IMAGE_PROTOCOL LoadedImage;
|
||||
@@ -32,7 +32,7 @@ BlpConfigParseCommandLine(VOID)
|
||||
if(LoadedImage && LoadedImage->LoadOptions)
|
||||
{
|
||||
/* Update global boot loader configuration */
|
||||
BlpConfigUpdateGlobalConfiguration(LoadedImage->LoadOptions);
|
||||
BlpUpdateGlobalConfiguration(LoadedImage->LoadOptions);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ BlpConfigParseCommandLine(VOID)
|
||||
*/
|
||||
XTCDECL
|
||||
VOID
|
||||
BlpConfigUpdateGlobalConfiguration(IN PWCHAR Options)
|
||||
BlpUpdateGlobalConfiguration(IN PWCHAR Options)
|
||||
{
|
||||
PWCHAR Argument, LastArg;
|
||||
SIZE_T Length;
|
||||
@@ -92,21 +92,6 @@ BlpConfigUpdateGlobalConfiguration(IN PWCHAR Options)
|
||||
/* Force shell mode */
|
||||
BlpConfiguration.Shell = TRUE;
|
||||
}
|
||||
else if(RtlWideStringCompare(Argument, L"THEME=", 6) == 0)
|
||||
{
|
||||
/* Skip to the argument value */
|
||||
Argument += 6;
|
||||
Length = RtlWideStringLength(Argument, 0);
|
||||
|
||||
/* Store theme configuration if not set already */
|
||||
if(BlpConfiguration.Theme == NULL)
|
||||
{
|
||||
/* Save theme in global configuration */
|
||||
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Theme);
|
||||
RtlCopyMemory(BlpConfiguration.Theme, Argument, (Length * sizeof(WCHAR)) - 1);
|
||||
BlpConfiguration.Theme[Length] = '\0';
|
||||
}
|
||||
}
|
||||
else if(RtlWideStringCompare(Argument, L"TIMEOUT=", 8) == 0)
|
||||
{
|
||||
/* Skip to the argument value */
|
||||
|
||||
Reference in New Issue
Block a user