mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
17 lines
431 B
C
17 lines
431 B
C
#include "bios.h"
|
|
#include "common/settings.h"
|
|
|
|
const char* ffDetectBios(FFBiosResult* bios) {
|
|
if (!ffSettingsGetAndroidProperty("ro.bootloader", &bios->version)) {
|
|
ffSettingsGetAndroidProperty("ro.boot.bootloader", &bios->version);
|
|
}
|
|
|
|
if (ffStrbufIgnCaseEqualS(&bios->version, "unknown")) {
|
|
ffStrbufClear(&bios->version);
|
|
}
|
|
|
|
ffStrbufSetStatic(&bios->type, "Bootloader");
|
|
|
|
return nullptr;
|
|
}
|