Add IntPtr version of HandleIncomingPacket

This commit is contained in:
Garry Newman 2019-05-30 08:15:01 +01:00
parent 253c206f71
commit adf39138a4

View File

@ -444,8 +444,16 @@ public static unsafe void HandleIncomingPacket( byte[] data, int size, uint addr
{
fixed ( byte* ptr = data )
{
Internal.HandleIncomingPacket( (IntPtr)ptr, size, address, port );
HandleIncomingPacket( (IntPtr)ptr, size, address, port );
}
}
/// <summary>
/// We have received a server query on our game port. Pass it to Steam to handle.
/// </summary>
public static unsafe void HandleIncomingPacket( IntPtr ptr, int size, uint address, ushort port )
{
Internal.HandleIncomingPacket( ptr, size, address, port );
}
}
}