提交 b11e643c 编写于 作者: P PMheart

ocvalidate: Add check for UIScale

上级 519c72f5
......@@ -111,7 +111,7 @@ Utility to validate whether a `config.plist` matches requirements and convention
- When `AudioSupport` is enabled, AudioDevice cannot be empty and must be a valid path.
#### Quirks
- When `RequestBootVarRouting` is enabled, `OpenRuntime.efi` should be loaded in `UEFI->Drivers`.
- `ResizeGpuBars` must be set to an integer value between `-1` or `19`.
- `ResizeGpuBars` must be set to an integer value between `-1` and `19`.
#### Drivers
- When `OpenUsbKbDxe.efi` is in use, `KeySupport` in `UEFI->Input` should never be enabled altogether.
- When `Ps2KeyboardDxe.efi` is in use, `KeySupport` in `UEFI->Input` should always be enabled altogether.
......@@ -124,5 +124,6 @@ Utility to validate whether a `config.plist` matches requirements and convention
#### Output
- `ClearScreenOnModeSwitch`, `IgnoreTextInGraphics`, `ReplaceTabWithSpace`, and `SanitiseClearScreen` only apply to `System` TextRenderer
- `Resolution` should match `NUMBERxNUMBER` or `NUMBERxNUMBER@NUMBER` sequences (unless it is an `Empty string` or is set to `Max`).
- `UIScale` must be set to an integer value between `-1` and `2`.
#### ReservedMemory
- Type: Only `Reserved`, `LoaderCode`, `LoaderData`, `BootServiceCode`, `BootServiceData`, `RuntimeCode`, `RuntimeData`, `Available`, `Persistent`, `UnusableMemory`, `ACPIReclaimMemory`, `ACPIMemoryNVS`, `MemoryMappedIO`, `MemoryMappedIOPortSpace`, or `PalCode` are accepted.
......@@ -424,6 +424,7 @@ CheckUEFIOutput (
UINT32 UserHeight;
UINT32 UserBpp;
BOOLEAN UserSetMax;
INT8 UIScale;
ErrorCount = 0;
UserUefi = &Config->Uefi;
......@@ -516,6 +517,12 @@ CheckUEFIOutput (
++ErrorCount;
}
UIScale = UserUefi->Output.UIScale;
if (UIScale < -1 || UIScale > 2) {
DEBUG ((DEBUG_WARN, "UEFI->Output->UIScale is borked (Can only be between -1 and 2)!\n"));
++ErrorCount;
}
return ErrorCount;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册