summaryrefslogtreecommitdiffstats
path: root/src/detection/bootmgr/bootmgr_haiku.cpp
blob: 72358fca0a6eebb82394ffd22ec4d0e2bdedbd54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}