@@ -158,6 +158,7 @@ class CCore : public CCoreInterface, public CSingleton < CCore >
158158 // Mod
159159 void SetOfflineMod ( bool bOffline );
160160 void ForceCursorVisible ( bool bVisible, bool bToggleControls = true );
161+ void SetMessageProcessor ( pfnProcessMessage pfnMessageProcessor );
161162 void ShowMessageBox ( const char * szTitle, const char * szText, unsigned int uiFlags, GUI_CALLBACK * ResponseHandler = NULL );
162163 void RemoveMessageBox ( bool bNextFrame = false );
163164 void ShowErrorMessageBox ( const SString& strTitle, SString strMessage, const SString& strTroubleLink = " " );
@@ -193,6 +194,8 @@ class CCore : public CCoreInterface, public CSingleton < CCore >
193194 HWND GetHookedWindow ( void );
194195 void SwitchRenderWindow ( HWND hWnd, HWND hWndInput );
195196 void CallSetCursorPos ( int X, int Y );
197+ void SetClientMessageProcessor ( pfnProcessMessage pfnMessageProcessor ) { m_pfnMessageProcessor = pfnMessageProcessor; };
198+ pfnProcessMessage GetClientMessageProcessor ( void ) { return m_pfnMessageProcessor; }
196199 void ChangeResolution ( long width, long height, long depth );
197200
198201 bool IsFocused ( void ) { return ( GetForegroundWindow ( ) == GetHookedWindow ( ) ); };
@@ -331,6 +334,7 @@ class CCore : public CCoreInterface, public CSingleton < CCore >
331334 bool m_bFirstFrame;
332335 bool m_bIsOfflineMod;
333336 bool m_bCursorToggleControls;
337+ pfnProcessMessage m_pfnMessageProcessor;
334338
335339 CGUIMessageBox* m_pMessageBox;
336340
0 commit comments