summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/HPM.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c
index 9283360dc..53059d224 100644
--- a/src/common/HPM.c
+++ b/src/common/HPM.c
@@ -255,7 +255,9 @@ void hplugins_config_read(void) {
}
void hplugins_share_defaults(void) {
/* console */
+#ifdef CONSOLE_INPUT
HPM->share(console->addCommand,"addCPCommand");
+#endif
/* core */
HPM->share(&runflag,"runflag");
HPM->share(arg_v,"arg_v");
@@ -311,8 +313,9 @@ void hpm_init(void) {
}
HPM->symbol_defaults();
+#ifdef CONSOLE_INPUT
console->addCommand("plugins",CPCMD_A(plugins));
-
+#endif
return;
}