Skip to content

Commit

Permalink
Add MonoPInvokeCallback to OnDebugMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
garrynewman committed Feb 28, 2020
1 parent 23129f3 commit d060548
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Facepunch.Steamworks/SteamNetworkingUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ struct DebugMessage
/// <summary>
/// This can be called from other threads - so we're going to queue these up and process them in a safe place.
/// </summary>
[MonoPInvokeCallback]
private static void OnDebugMessage( NetDebugOutput nType, IntPtr str )
{
debugMessages.Enqueue( new DebugMessage { Type = nType, Msg = Helpers.MemoryToString( str ) } );
Expand Down

0 comments on commit d060548

Please sign in to comment.