Logo: exports ffLogoPrintDetected

This commit is contained in:
Carter Li
2026-05-28 19:18:35 +08:00
parent 6c09fe49e4
commit ec4e820e92
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ int main(void) {
ffStart();
// Print logo
ffLogoPrint();
ffLogoPrintDetected(FF_LOGO_SIZE_NORMAL);
// Print all modules
{
+4 -4
View File
@@ -436,7 +436,7 @@ static bool logoPrintBuiltinIfExists(const FFstrbuf* name, FFLogoSize size) {
return true;
}
static inline void logoPrintDetected(FFLogoSize size) {
void ffLogoPrintDetected(FFLogoSize size) {
logoPrintStruct(logoGetBuiltinDetected(size));
}
@@ -606,7 +606,7 @@ void ffLogoPrint(void) {
// If the source is not set, we can directly print the detected logo.
if (options->source.length == 0) {
logoPrintDetected(options->type == FF_LOGO_TYPE_SMALL ? FF_LOGO_SIZE_SMALL : FF_LOGO_SIZE_NORMAL);
ffLogoPrintDetected(options->type == FF_LOGO_TYPE_SMALL ? FF_LOGO_SIZE_SMALL : FF_LOGO_SIZE_NORMAL);
return;
}
@@ -620,7 +620,7 @@ void ffLogoPrint(void) {
}
}
logoPrintDetected(FF_LOGO_SIZE_UNKNOWN);
ffLogoPrintDetected(FF_LOGO_SIZE_UNKNOWN);
}
return;
}
@@ -681,7 +681,7 @@ void ffLogoPrint(void) {
}
}
logoPrintDetected(FF_LOGO_SIZE_UNKNOWN);
ffLogoPrintDetected(FF_LOGO_SIZE_UNKNOWN);
}
void ffLogoPrintLine(void) {
+1
View File
@@ -32,6 +32,7 @@ void ffLogoPrintRemaining(void);
void ffLogoBuiltinPrint(void);
void ffLogoBuiltinList(void);
void ffLogoBuiltinListAutocompletion(void);
void ffLogoPrintDetected(FFLogoSize size);
const FFlogo* ffLogoGetBuiltinForName(const FFstrbuf* name, FFLogoSize size);
const FFlogo* ffLogoGetBuiltinDetected(FFLogoSize size);