int ismoduleloaded(void* handle) { CLinkNode<byte>* p = s_plugins.first(); while (p) { if (p->data() == (byte*)handle) return 1; p = p->next(); } return 0; }
void setmoduleunloaded(void* handle) { CLinkNode<byte>* p = s_plugins.first(); while (p) { if (p->data() == (byte*)handle) { s_plugins.del(p); return; } p = p->next(); } }