From d06054875ae63b1e605929d83dcb7729f8faebc0 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 28 Feb 2020 19:21:23 +0000 Subject: [PATCH] Add MonoPInvokeCallback to OnDebugMessage --- Facepunch.Steamworks/SteamNetworkingUtils.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Facepunch.Steamworks/SteamNetworkingUtils.cs b/Facepunch.Steamworks/SteamNetworkingUtils.cs index 03015b31..8a27b7ac 100644 --- a/Facepunch.Steamworks/SteamNetworkingUtils.cs +++ b/Facepunch.Steamworks/SteamNetworkingUtils.cs @@ -233,6 +233,7 @@ struct DebugMessage /// /// This can be called from other threads - so we're going to queue these up and process them in a safe place. /// + [MonoPInvokeCallback] private static void OnDebugMessage( NetDebugOutput nType, IntPtr str ) { debugMessages.Enqueue( new DebugMessage { Type = nType, Msg = Helpers.MemoryToString( str ) } );