1
0
mirror of synced 2024-12-01 01:37:23 +01:00

Prevent the plugin from hooking FFBPluginGUI.exe

This commit is contained in:
pinkimo 2019-11-03 04:54:38 +01:00
parent 887749c7ca
commit 765e861376

View File

@ -2618,6 +2618,12 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReasonForCall, LPVOID lpReserved)
originalmmsystemGetVersion = GetProcAddress(gl_hOriginalDll, "mmsystemGetVersion"); originalmmsystemGetVersion = GetProcAddress(gl_hOriginalDll, "mmsystemGetVersion");
} }
if (processName.find("FFBPluginGUI.exe") != std::string::npos)
{
hlp.log("hooked FFBPluginGUI.exe, aborting");
break;
}
hlp.log("creating ffb loop thread..."); hlp.log("creating ffb loop thread...");
CreateFFBLoopThread(); CreateFFBLoopThread();
if (BeepWhenHook == 1) if (BeepWhenHook == 1)