mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 16:16:05 +00:00
Merge pull request #12258 from skyfloogle/traversal-logging
Netplay: Don't log skippable events as errors
This commit is contained in:
commit
ff009dd8b5
5 changed files with 16 additions and 5 deletions
|
@ -31,7 +31,7 @@ int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event)
|
|||
// wakeup packet received
|
||||
if (host->receivedDataLength == 1 && host->receivedData[0] == 0)
|
||||
{
|
||||
event->type = (ENetEventType)42;
|
||||
event->type = SKIPPABLE_EVENT;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -21,4 +21,7 @@ using ENetHostPtr = std::unique_ptr<ENetHost, ENetHostDeleter>;
|
|||
void WakeupThread(ENetHost* host);
|
||||
int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
|
||||
bool SendPacket(ENetPeer* socket, const sf::Packet& packet, u8 channel_id);
|
||||
|
||||
// used for traversal packets and wake-up packets
|
||||
constexpr ENetEventType SKIPPABLE_EVENT = ENetEventType(42);
|
||||
} // namespace Common::ENet
|
||||
|
|
|
@ -299,7 +299,7 @@ int ENET_CALLBACK TraversalClient::InterceptCallback(ENetHost* host, ENetEvent*
|
|||
&host->receivedAddress) ||
|
||||
(host->receivedDataLength == 1 && host->receivedData[0] == 0))
|
||||
{
|
||||
event->type = (ENetEventType)42;
|
||||
event->type = Common::ENet::SKIPPABLE_EVENT;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue