void ShutdownMQ2KeyBinds() { BindList.Cleanup(); RemoveDetour(KeypressHandler__ClearCommandStateArray); RemoveDetour(KeypressHandler__HandleKeyDown); RemoveDetour(KeypressHandler__HandleKeyUp); }
// Called once, when the plugin is to shutdown PLUGIN_API VOID ShutdownPlugin(VOID) { DebugSpewAlways("Shutting down MQ2CustomBinds"); RemoveCommand("/custombind"); //SaveCustomBinds(); for (unsigned long N = 0 ; N < CustomBinds.Size ; N++) if (PCUSTOMBIND pBind=CustomBinds[N]) { RemoveMQ2KeyBind(pBind->Name); } CustomBinds.Cleanup(); // Remove commands, macro parameters, hooks, etc. // RemoveMQ2Benchmark(bmMyBenchmark); // RemoveParm("$myparm(x)"); // RemoveCommand("/mycommand"); // RemoveXMLFile("MQUI_MyXMLFile.xml"); }
void ShutdownMQ2Data() { MQ2DataItems.Cleanup(); }