MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / HookBrowserProcess

Function HookBrowserProcess

core/src/browser/browser.cc:237–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void HookBrowserProcess()
238{
239#if OS_WIN && _DEBUG
240 // Open console window.
241 AllocConsole();
242 SetConsoleTitleA("League Client (browser process)");
243 FILE *_fp; freopen_s(&_fp, "CONOUT$", "w", stdout);
244#endif
245
246 // Hook CefInitialize().
247 CefInitialize.hook(LIBCEF_MODULE_NAME,
248 "cef_initialize", Hooked_CefInitialize);
249
250 // Hook CefBrowserHost::CreateBrowser().
251 CefBrowserHost_CreateBrowser.hook(LIBCEF_MODULE_NAME,
252 "cef_browser_host_create_browser", Hooked_CefBrowserHost_CreateBrowser);
253
254 // Hook CefRequestContext::CreateContext().
255 CefRequestContext_CreateContext.hook(LIBCEF_MODULE_NAME,
256 "cef_request_context_create_context", Hooked_CefRequestContext_CreateContext);
257}

Callers 2

InitializeFunction · 0.85
dllmainFunction · 0.85

Calls 1

hookMethod · 0.80

Tested by

no test coverage detected