================ rvDebuggerServer::Print Sends a console print message over to the debugger client ================ */
| 779 | ================ |
| 780 | */ |
| 781 | void rvDebuggerServer::Print ( const char* text ) |
| 782 | { |
| 783 | if ( !mConnected ) |
| 784 | { |
| 785 | return; |
| 786 | } |
| 787 | |
| 788 | idBitMsg msg; |
| 789 | byte buffer[MAX_MSGLEN]; |
| 790 | |
| 791 | msg.Init( buffer, sizeof( buffer ) ); |
| 792 | msg.BeginWriting(); |
| 793 | msg.WriteShort ( (short)DBMSG_PRINT ); |
| 794 | msg.WriteString ( text ); |
| 795 | |
| 796 | SendPacket ( msg.GetData(), msg.GetSize() ); |
| 797 | } |
no test coverage detected