From 4bbb13b44d372c5adaa2df3efd01c072b1ded3c7 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Mon, 10 Jan 2022 15:24:10 +0100 Subject: [PATCH] Android support part 5 --- src/modules/host.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/host.c b/src/modules/host.c index 171fa6613..5bc551a45 100644 --- a/src/modules/host.c +++ b/src/modules/host.c @@ -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, ' '); }