MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ProcessNetMessage

Method ProcessNetMessage

neo/tools/debugger/DebuggerWindow.cpp:1888–2059  ·  view source on GitHub ↗

================ rvDebuggerWindow::ProcessNetMessage Process an incoming network message ================ */

Source from the content-addressed store, hash-verified

1886================
1887*/
1888void rvDebuggerWindow::ProcessNetMessage ( idBitMsg* msg )
1889{
1890 short command;
1891
1892 command = msg->ReadShort( );
1893
1894 switch ( command )
1895 {
1896 case DBMSG_REMOVEBREAKPOINT:
1897 MessageBeep(MB_ICONEXCLAMATION);
1898 InvalidateRect(mWndScript, NULL, FALSE);
1899 UpdateBreakpointList();
1900 break;
1901
1902 case DBMSG_RESUMED:
1903 UpdateTitle ( );
1904 UpdateToolbar ( );
1905 break;
1906
1907 case DBMSG_INSPECTVARIABLE:
1908 {
1909 char temp[1024];
1910 char temp2[1024];
1911 int i;
1912
1913 msg->ReadShort ( );
1914 msg->ReadString ( temp, 1024 );
1915 msg->ReadString ( temp2, 1024 );
1916 if ( mTooltipVar.Icmp ( temp ) == 0 )
1917 {
1918 mTooltipValue = temp2;
1919
1920 TOOLINFO info;
1921 info.cbSize = sizeof(info);
1922 info.hwnd = mWndScript;
1923 info.uId = 0;
1924 info.hinst = mInstance;
1925 info.lpszText = va("%s=%s", mTooltipVar.c_str(), mTooltipValue.c_str() );
1926 SendMessage ( mWndToolTips, TTM_UPDATETIPTEXT, 0, (LPARAM)&info );
1927 SendMessage ( mWndToolTips, TTM_UPDATE, 0, 0 );
1928 }
1929
1930 // See if any of the watches were updated by this inspect
1931 for ( i = 0; i < mWatches.Num(); i ++ )
1932 {
1933 rvDebuggerWatch* watch = mWatches[i];
1934
1935 // See if the name matches the variable
1936 if ( watch->mVariable.Cmp ( temp ) )
1937 {
1938 continue;
1939 }
1940
1941 // Has the value changed?
1942 if ( !watch->mValue.Cmp ( temp2 ) )
1943 {
1944 continue;
1945 }

Callers 1

ProcessMessagesMethod · 0.80

Calls 13

vaFunction · 0.85
PrintfFunction · 0.85
GetBreakLineNumberMethod · 0.80
GetBreakFilenameMethod · 0.80
InspectVariableMethod · 0.80
IcmpMethod · 0.60
ReadShortMethod · 0.45
ReadStringMethod · 0.45
c_strMethod · 0.45
NumMethod · 0.45
CmpMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected