From 1731ab2c5ff4da93c2bb8ea4b9be42663e3952b4 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Sat, 2 Apr 2022 14:42:18 +0200 Subject: [PATCH] Prepare for images in the terminal #2 --- src/flashfetch.c | 3 --- tests/performance.c | 16 ++++++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/flashfetch.c b/src/flashfetch.c index 313de8977..f75f507c7 100644 --- a/src/flashfetch.c +++ b/src/flashfetch.c @@ -10,9 +10,6 @@ int main(int argc, char** argv) //Modify instance.config here - ffLoadLogo(&instance); //ffLoadLogoSet(&instance, "my custom logo"); - ffStrbufSet(&instance.config.color, &instance.config.logoColors[0]); //Use the primary color of the logo as key color - //Multithreading --> better performance ffStartDetectionThreads(&instance); diff --git a/tests/performance.c b/tests/performance.c index 810a08d9b..c526a2106 100644 --- a/tests/performance.c +++ b/tests/performance.c @@ -25,12 +25,6 @@ int main(int argc, char** argv) ffInitInstance(&instance); ) - FASTFETCH_TEST_PERFORMANCE( - puts("Configuration"); - ffLoadLogo(&instance); - ) - - ffStrbufSet(&instance.config.color, &instance.config.logoColors[0]); instance.config.showErrors = true; instance.config.recache = argc == 1; instance.config.cacheSave = false; @@ -41,6 +35,11 @@ int main(int argc, char** argv) ffStartDetectionThreads(&instance); ) + FASTFETCH_TEST_PERFORMANCE( + puts("Starting"); + ffStart(&instance); + ) + FASTFETCH_TEST_PERFORMANCE(ffPrintTitle(&instance)) FASTFETCH_TEST_PERFORMANCE(ffPrintSeparator(&instance)) FASTFETCH_TEST_PERFORMANCE(ffPrintOS(&instance)) @@ -74,5 +73,10 @@ int main(int argc, char** argv) FASTFETCH_TEST_PERFORMANCE(ffPrintBreak(&instance)) FASTFETCH_TEST_PERFORMANCE(ffPrintColors(&instance)) + FASTFETCH_TEST_PERFORMANCE( + puts("Finishing"); + ffFinish(&instance); + ) + return 0; }