structure and values can be set in fastfetch via command line and file!

This commit is contained in:
Linus Dierheimer
2021-03-03 19:59:39 +01:00
parent 4dffbb0bb7
commit db6d2eb3a3
21 changed files with 398 additions and 329 deletions
-5
View File
@@ -3,11 +3,6 @@
// Impl by: https://github.com/sam-barr/paleofetch/blob/b7c58a52c0de39b53c9b5f417889a5886d324bfa/paleofetch.c#L544
void ffPrintMemory(FFinstance* instance)
{
#ifdef FASTFETCH_BUILD_FLASHFETCH
if(ffPrintCustomValue(instance, "Memory"))
return;
#endif // FASTFETCH_BUILD_FLASHFETCH
FILE* meminfo = fopen("/proc/meminfo", "r");
if(meminfo == NULL) {
ffPrintError(instance, "Memory", "fopen(\"/proc/meminfo\", \"r\") == NULL");