mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 21:24:43 +01:00
@@ -5,7 +5,7 @@
|
||||
#include "modules/custom/custom.h"
|
||||
|
||||
bool ffPrintCustom(FFCustomOptions* options) {
|
||||
ffPrintFormat(FF_CUSTOM_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, 0, ((FFformatarg[]) {}));
|
||||
ffPrintFormat(FF_MODULE_GET_DISPLAY_NAME(Custom), 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, 0, ((FFformatarg[]) {}));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ void ffParseCustomJsonObject(FFCustomOptions* options, yyjson_val* module) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ffPrintError(FF_CUSTOM_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "Unknown JSON key %s", unsafe_yyjson_get_str(key));
|
||||
ffPrintError(FF_MODULE_GET_DISPLAY_NAME(Custom), 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "Unknown JSON key %s", unsafe_yyjson_get_str(key));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ void ffDestroyCustomOptions(FFCustomOptions* options) {
|
||||
}
|
||||
|
||||
FFModuleBaseInfo ffCustomModuleInfo = {
|
||||
.name = FF_CUSTOM_MODULE_NAME,
|
||||
.name = "Custom",
|
||||
.description = "Print a custom string, with or without key",
|
||||
.displayName = {
|
||||
.en = "Custom",
|
||||
|
||||
Reference in New Issue
Block a user