fl16: Detect OS even when it's not requesting BOS

Windows resuming from hibernate/S4 doesn't do that...

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer 2023-11-30 11:40:46 +08:00
parent 05798c19c1
commit 90fe3da695

View File

@ -54,10 +54,10 @@ void make_guess(void) {
//if (setups_data.count < 3 && setups_data.cnt_zoid != 0) {
// return;
//}
if (setups_data.cnt_zoid == 0) {
detected_os = OS_UEFI;
return;
}
//if (setups_data.cnt_zoid == 0) {
// detected_os = OS_UEFI;
// return;
//}
if (setups_data.cnt_ff >= 2 && setups_data.cnt_04 >= 1) {
detected_os = OS_WINDOWS;
return;