mirror of
https://github.com/reactos/reactos.git
synced 2026-05-23 07:40:09 +08:00
Detect whether we run on XBOX or PC98 (on x86 builds), or on (U)EFI or on a BIOS-based PC, or whether a generic linear framebuffer mode is used, in order to choose the correct bootvid module to load, based from a predefined file names list (ideally it should be derived from txtsetup.sif...). Supersedes PR #8701. Use `KeFindConfiguration*Entry()` to spelunk the hardware configuration tree in the NT loader module. Alternatively, allow the user to override the choice with a new `BOOTVID=` boot option. In any case, if the selected bootvid module failed to be loaded, silently fall back to the default bootvid.dll file. The fallback is done by just letting the PE loader resolve the necessary exports from hal.dll and ntoskrnl.exe.