master ohmu/fastfetch-openbsd / src / detection / bootmgr / bootmgr_haiku.cpp
ohmu  ·  2026-10-15
 1extern "C" {
 2    #include "bootmgr.h"
 3    #include "common/io.h"
 4}
 5
 6const char* ffDetectBootmgr(FFBootmgrResult* result) {
 7    // TODO: glob haiku_loader.* + check EFI partition
 8    if (ffPathExists("/system/haiku_loader.bios_ia32", FF_PATHTYPE_FILE)) {
 9        ffStrbufSetStatic(&result->firmware, "/system/haiku_loader.bios_ia32");
10    }
11
12    ffStrbufSetStatic(&result->name, "haiku_loader");
13
14    // TODO: detectSecureBoot(&result->secureBoot);
15
16    return nullptr;
17}