version 1.4 | | version 1.5 |
---|
| | |
CFPContext* context_stack; | | CFPContext* context_stack; |
CFPContext* current_context; | | CFPContext* current_context; |
static int current_command = -999; | | static int current_command = -999; |
| | O2F |
static PyObject* registerGEvent(PyObject* self, PyObject* args) | | static PyObject* registerGEvent(PyObject* self, PyObject* args) |
{ | | { |
int eventcode; | | int eventcode; |
| | |
printf("Illegal call of runPluginCommand, call find_plugin_command first.\n"); | | printf("Illegal call of runPluginCommand, call find_plugin_command first.\n"); |
return 1; | | return 1; |
} | | } |
strcpy(buf, cf_get_maps_directory(CustomCommand[i].name)); | | strcpy(buf, cf_get_maps_directory(CustomCommand[current_command].name)); |
strcat(buf, ".py"); | | strcat(buf, ".py"); |
| | |
context = malloc(sizeof(CFPContext)); | | context = malloc(sizeof(CFPContext)); |