// shutdown sequence void ISXEQMap::Shutdown() { Update = false; RemoveDetour(CMapViewWnd__CMapViewWnd); MapClear(); CMyMapViewWnd::RestoreVFTable(); RemoveMQ2Benchmark(bmMapRefresh); pISInterface->RemoveCommand("MapHide"); pISInterface->RemoveCommand("MapShow"); pISInterface->RemoveCommand("MapFilter"); pISInterface->RemoveCommand("Highlight"); pISInterface->RemoveCommand("MapNames"); pISInterface->RemoveCommand("MapClick"); pISInterface->UnloadSettings("ISXEQMap.xml"); DisconnectServices(); UnRegisterServices(); UnRegisterTopLevelObjects(); UnRegisterDataTypes(); UnRegisterAliases(); UnRegisterCommands(); }
PLUGIN_API VOID ShutdownPlugin() { DebugSpewAlways("Shutting down MQ2ChatWnd"); while(pPendingChat) { ChatBuffer *pNext=pPendingChat->pNext; delete pPendingChat; pPendingChat=pNext; } pPendingChatTail=0; PendingChatLines=0; // Remove commands, macro parameters, hooks, etc. RemoveCommand("/style"); RemoveCommand("/mqfont"); RemoveCommand("/mqmin"); RemoveCommand("/mqclear"); RemoveMQ2KeyBind("MQ2CHAT"); RemoveMQ2Benchmark(bmStripFirstStmlLines); DestroyChatWnd(); }