Do not overwrite some options for easy debugging and testing new themes
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 26s
Builds / ExectOS (i686) (push) Successful in 25s

This commit is contained in:
Rafal Kupiec 2023-12-03 23:42:59 +01:00
parent 5131a682b8
commit 9f36d397f0
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -78,11 +78,15 @@ BlpConfigUpdateGlobalConfiguration(IN PWCHAR Options)
Argument += 6; Argument += 6;
Length = RtlWideStringLength(Argument, 0); Length = RtlWideStringLength(Argument, 0);
/* Store debug port configuration if not set already */
if(BlpConfiguration.Debug == NULL)
{
/* Save debug port in global configuration */ /* Save debug port in global configuration */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Debug); BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Debug);
RtlCopyMemory(BlpConfiguration.Debug, Argument, (Length * sizeof(WCHAR)) - 1); RtlCopyMemory(BlpConfiguration.Debug, Argument, (Length * sizeof(WCHAR)) - 1);
BlpConfiguration.Debug[Length] = '\0'; BlpConfiguration.Debug[Length] = '\0';
} }
}
else if(RtlWideStringCompare(Argument, L"SHELL", 5) == 0) else if(RtlWideStringCompare(Argument, L"SHELL", 5) == 0)
{ {
/* Force shell mode */ /* Force shell mode */
@ -94,11 +98,15 @@ BlpConfigUpdateGlobalConfiguration(IN PWCHAR Options)
Argument += 6; Argument += 6;
Length = RtlWideStringLength(Argument, 0); Length = RtlWideStringLength(Argument, 0);
/* Store theme configuration if not set already */
if(BlpConfiguration.Theme == NULL)
{
/* Save theme in global configuration */ /* Save theme in global configuration */
BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Theme); BlMemoryAllocatePool(Length, (PVOID *)&BlpConfiguration.Theme);
RtlCopyMemory(BlpConfiguration.Theme, Argument, (Length * sizeof(WCHAR)) - 1); RtlCopyMemory(BlpConfiguration.Theme, Argument, (Length * sizeof(WCHAR)) - 1);
BlpConfiguration.Theme[Length] = '\0'; BlpConfiguration.Theme[Length] = '\0';
} }
}
else if(RtlWideStringCompare(Argument, L"TIMEOUT=", 8) == 0) else if(RtlWideStringCompare(Argument, L"TIMEOUT=", 8) == 0)
{ {
/* Skip to the argument value */ /* Skip to the argument value */