mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 23:25:55 +03:00
Add IntPtr version of HandleIncomingPacket
This commit is contained in:
parent
253c206f71
commit
adf39138a4
@ -444,8 +444,16 @@ public static unsafe void HandleIncomingPacket( byte[] data, int size, uint addr
|
|||||||
{
|
{
|
||||||
fixed ( byte* ptr = data )
|
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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user