mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
Bootmgr (Haiku): Preliminary implementation
This commit is contained in:
committed by
Carter Li
parent
f932db713c
commit
ccf4f22f8b
+1
-1
@@ -1204,7 +1204,7 @@ elseif(Haiku)
|
||||
src/detection/battery/battery_haiku.c
|
||||
src/detection/bios/bios_windows.c
|
||||
src/detection/board/board_windows.c
|
||||
src/detection/bootmgr/bootmgr_nosupport.c
|
||||
src/detection/bootmgr/bootmgr_haiku.cpp
|
||||
src/detection/brightness/brightness_nosupport.c
|
||||
src/detection/btrfs/btrfs_nosupport.c
|
||||
src/detection/chassis/chassis_windows.c
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
extern "C" {
|
||||
#include "bootmgr.h"
|
||||
#include "common/io.h"
|
||||
}
|
||||
|
||||
const char* ffDetectBootmgr(FFBootmgrResult* result) {
|
||||
// TODO: glob haiku_loader.* + check EFI partition
|
||||
if (ffPathExists("/system/haiku_loader.bios_ia32", FF_PATHTYPE_FILE)) {
|
||||
ffStrbufSetStatic(&result->firmware, "/system/haiku_loader.bios_ia32");
|
||||
}
|
||||
|
||||
ffStrbufSetStatic(&result->name, "haiku_loader");
|
||||
|
||||
// TODO: detectSecureBoot(&result->secureBoot);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
Reference in New Issue
Block a user