version 1.64 | | version 1.65 |
---|
| | |
/* | | /* |
* static char *rcsid_c_wiz_c = | | * static char *rcsid_c_wiz_c = |
* "$Id: c_wiz.c,v 1.64 2005/07/17 11:22:51 akirschbaum Exp $"; | | * "$Id: c_wiz.c,v 1.65 2005/07/18 19:07:06 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
{ | | { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
| | |
| | if (params == NULL) { |
| | new_draw_info(NDI_UNIQUE, 0, op, "Load which plugin?"); |
| | return 1; |
| | } |
| | |
strcpy(buf,LIBDIR); | | strcpy(buf,LIBDIR); |
strcat(buf,"/plugins/"); | | strcat(buf,"/plugins/"); |
strcat(buf,params); | | strcat(buf,params); |
printf("Requested plugin file is %s\n", buf); | | printf("Requested plugin file is %s\n", buf); |
initOnePlugin(buf); | | if (initOnePlugin(buf) == 0) |
| | new_draw_info(NDI_UNIQUE, 0, op, "Plugin successfully loaded."); |
| | else |
| | new_draw_info(NDI_UNIQUE, 0, op, "Could not load plugin."); |
return 1; | | return 1; |
} | | } |
/* GROS */ | | /* GROS */ |
| | |
/* are not loaded. */ | | /* are not loaded. */ |
int command_unloadplugin(object *op, char *params) | | int command_unloadplugin(object *op, char *params) |
{ | | { |
removeOnePlugin(params); | | if (params == NULL) { |
| | new_draw_info(NDI_UNIQUE, 0, op, "Remove which plugin?"); |
| | return 1; |
| | } |
| | |
| | if (removeOnePlugin(params) == 0) |
| | new_draw_info(NDI_UNIQUE, 0, op, "Plugin successfully removed."); |
| | else |
| | new_draw_info(NDI_UNIQUE, 0, op, "Could not remove plugin."); |
return 1; | | return 1; |
} | | } |
| | |