Prepare flashfetch for images in terminal too

This commit is contained in:
Linus Dierheimer 2022-04-02 14:42:18 +02:00
parent fcc8927917
commit 3248afe91c
No known key found for this signature in database
GPG Key ID: 74FA57726CDD7B61
2 changed files with 10 additions and 9 deletions

View File

@ -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);

View File

@ -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;
}