mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Android support part 5
This commit is contained in:
+3
-1
@@ -32,6 +32,7 @@ static bool hostValueSet(FFstrbuf* value)
|
||||
;
|
||||
}
|
||||
|
||||
#ifndef __ANDROID__
|
||||
static void getHostValue(const char* devicesPath, const char* classPath, FFstrbuf* buffer)
|
||||
{
|
||||
ffGetFileContent(devicesPath, buffer);
|
||||
@@ -39,6 +40,7 @@ static void getHostValue(const char* devicesPath, const char* classPath, FFstrbu
|
||||
if(buffer->length == 0)
|
||||
ffGetFileContent(classPath, buffer);
|
||||
}
|
||||
#endif
|
||||
|
||||
void ffPrintHost(FFinstance* instance)
|
||||
{
|
||||
@@ -76,7 +78,7 @@ void ffPrintHost(FFinstance* instance)
|
||||
#else
|
||||
ffSettingsGetAndroidProperty("ro.product.brand", &name);
|
||||
if(name.length > 0){
|
||||
toupper(name.chars[0]);
|
||||
name.chars[0] = toupper(name.chars[0]);
|
||||
ffStrbufAppendC(&name, ' ');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user