diff --git a/dim_plugins/example_c/src/main.c b/dim_plugins/example_c/src/main.c index addd358..a45ca4d 100644 --- a/dim_plugins/example_c/src/main.c +++ b/dim_plugins/example_c/src/main.c @@ -15,7 +15,8 @@ typedef struct plug_t { plug_t* p = {0}; -// If any function returns 0/NULL the plugin will be disabled +// If any function returns not 0 the plugin will be disabled +// Except for `pre_reload`, the plugin will be disabled if it is NULL int plug_init(plug_ctx_t* ctx) { setup_ctx(ctx); p = malloc(sizeof(plug_t));