/* Patching hardcoded values in ResolutionVariablePatcher via events. */ private void MessagePump() { _resolutionVariablePatcher = new ResolutionVariablePatcher(_config); _resolutionVariablePatcher.Patch(_config.Width, _config.Height); while (User32_Gdi.GetMessage(out var msg, HWND.NULL, 0, 0)) { User32_Gdi.TranslateMessage(msg); User32_Gdi.DispatchMessage(msg); } }
/* Patching hardcoded values in ResolutionVariablePatcher via events. */ private void MessagePump() { _resizeEventHook = new ResizeEventHook(); _resolutionVariablePatcher.SubscribeToResizeEventHook(_resizeEventHook); _renderHooks.SubscribeToResizeEventHook(_resizeEventHook); while (User32_Gdi.GetMessage(out var msg, HWND.NULL, 0, 0)) { User32_Gdi.TranslateMessage(msg); User32_Gdi.DispatchMessage(msg); } }