1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add extra parameter to server queries.

This commit is contained in:
Bartosz Taudul
2020-03-25 20:04:01 +01:00
parent 383918bca4
commit 3e0e120222
4 changed files with 9 additions and 6 deletions
+4 -2
View File
@@ -2304,10 +2304,12 @@ static bool DontExit() { return false; }
bool Profiler::HandleServerQuery()
{
uint8_t type;
if( !m_sock->Read( &type, sizeof( type ), 10, DontExit ) ) return false;
uint64_t ptr;
uint32_t extra;
if( !m_sock->Read( &type, sizeof( type ), 10, DontExit ) ) return false;
if( !m_sock->Read( &ptr, sizeof( ptr ), 10, DontExit ) ) return false;
if( !m_sock->Read( &extra, sizeof( extra ), 10, DontExit ) ) return false;
switch( type )
{