| 763 | } |
| 764 | |
| 765 | void SM_ExecuteForPlugin(IPluginContext *ctx) |
| 766 | { |
| 767 | SMPlugin *plugin = scripts->FindPluginByContext(ctx); |
| 768 | |
| 769 | unsigned int num = plugin->GetConfigCount(); |
| 770 | if (!num) |
| 771 | { |
| 772 | SM_DoSingleExecFwds(ctx); |
| 773 | } |
| 774 | else |
| 775 | { |
| 776 | bool can_create = true; |
| 777 | for (unsigned int i=0; i<num; i++) |
| 778 | { |
| 779 | can_create = SM_ExecuteConfig(plugin, plugin->GetConfig(i), can_create); |
| 780 | } |
| 781 | char cmd[255]; |
| 782 | ke::SafeSprintf(cmd, sizeof(cmd), "sm_internal 2 %d\n", plugin->GetSerial()); |
| 783 | engine->ServerCommand(cmd); |
| 784 | } |
| 785 | } |
| 786 | |
| 787 | void SM_ExecuteAllConfigs() |
| 788 | { |
nothing calls this directly
no test coverage detected