BOOL APIENTRY DllMain( HMODULE hModule , DWORD dwReasonForCall , LPVOID lpReserved )
{
if( dwReasonForCall == DLL_PROCESS_ATTACH )
SF->initPlugin( mainloop , hModule );
if (dwReasonForCall == DLL_PROCESS_DETACH) {
ImGui_ImplDX9_Shutdown();
ImGui_ImplWin32_Shutdown();
ImGui::DestroyContext();
}
return TRUE;
}