| 771 | } |
| 772 | |
| 773 | static cell_t GetExtensionFileStatus(IPluginContext *pContext, const cell_t *params) |
| 774 | { |
| 775 | char *str; |
| 776 | pContext->LocalToString(params[1], &str); |
| 777 | |
| 778 | IExtension *pExtension = extsys->FindExtensionByFile(str); |
| 779 | |
| 780 | if (!pExtension) |
| 781 | { |
| 782 | return -2; |
| 783 | } |
| 784 | |
| 785 | if (!pExtension->IsLoaded()) |
| 786 | { |
| 787 | return -1; |
| 788 | } |
| 789 | |
| 790 | char *error; |
| 791 | pContext->LocalToString(params[2], &error); |
| 792 | if (!pExtension->IsRunning(error, params[3])) |
| 793 | { |
| 794 | return 0; |
| 795 | } |
| 796 | |
| 797 | return 1; |
| 798 | } |
| 799 | |
| 800 | static cell_t FindPluginByNumber(IPluginContext *pContext, const cell_t *params) |
| 801 | { |
nothing calls this directly
no test coverage detected