mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 05:04:17 +01:00
Modules: return bool to indicate whether the detection is succeeded
This commit is contained in:
@@ -4,9 +4,10 @@
|
||||
#include "util/textModifier.h"
|
||||
#include "util/stringUtils.h"
|
||||
|
||||
void ffPrintCustom(FFCustomOptions* options)
|
||||
bool ffPrintCustom(FFCustomOptions* options)
|
||||
{
|
||||
ffPrintFormat(FF_CUSTOM_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, 0, ((FFformatarg[]) {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
void ffGenerateCustomJsonConfig(FFCustomOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#define FF_CUSTOM_MODULE_NAME "Custom"
|
||||
|
||||
void ffPrintCustom(FFCustomOptions* options);
|
||||
bool ffPrintCustom(FFCustomOptions* options);
|
||||
void ffInitCustomOptions(FFCustomOptions* options);
|
||||
void ffDestroyCustomOptions(FFCustomOptions* options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user