mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
Bios (Android): add support
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#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);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#include "bios.h"
|
||||
|
||||
const char* ffDetectBios(FF_MAYBE_UNUSED FFBiosResult* bios)
|
||||
{
|
||||
return "Not supported on this platform";
|
||||
}
|
||||
Reference in New Issue
Block a user