mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-04-22 06:02:06 +02:00
prefix these debug messages in networking
This commit is contained in:
parent
0955fbb77a
commit
b137cf0f38
1 changed files with 3 additions and 3 deletions
|
@ -312,17 +312,17 @@ bool IsP2PPacketAvailable( uint32 *pcubMsgSize, int nChannel)
|
|||
//this->network->Run();
|
||||
//RunCallbacks();
|
||||
|
||||
PRINT_DEBUG("Messages %zu %p\n", messages.size(), &messages);
|
||||
PRINT_DEBUG("Steam_Networking::IsP2PPacketAvailable Messages %zu %p\n", messages.size(), &messages);
|
||||
for (auto &msg : messages) {
|
||||
if (connection_exists((uint64)msg.source_id()) && msg.mutable_network()->channel() == nChannel && msg.network().processed()) {
|
||||
uint32 size = msg.mutable_network()->data().size();
|
||||
if (pcubMsgSize) *pcubMsgSize = size;
|
||||
PRINT_DEBUG("available with size: %u\n", size);
|
||||
PRINT_DEBUG("Steam_Networking::IsP2PPacketAvailable available with size: %u\n", size);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
PRINT_DEBUG("Not available\n");
|
||||
PRINT_DEBUG("Steam_Networking::IsP2PPacketAvailable (not available)\n");
|
||||
if (pcubMsgSize) *pcubMsgSize = 0;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue