From 144f401d2c7f6fd39e30c87d8f6e49baad7f708f Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 21 Mar 2018 11:17:46 +0000 Subject: [PATCH] Register callbacks before setting up interfaces --- Facepunch.Steamworks/Client.cs | 10 +++++----- Facepunch.Steamworks/Server.cs | 12 +++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Facepunch.Steamworks/Client.cs b/Facepunch.Steamworks/Client.cs index f2feda0..677dfaa 100644 --- a/Facepunch.Steamworks/Client.cs +++ b/Facepunch.Steamworks/Client.cs @@ -84,17 +84,17 @@ public Client( uint appId ) : base( appId ) return; } - // - // Setup interfaces that client and server both have - // - SetupCommonInterfaces(); - // // Register Callbacks // SteamNative.Callbacks.RegisterCallbacks( this ); + // + // Setup interfaces that client and server both have + // + SetupCommonInterfaces(); + // // Client only interfaces // diff --git a/Facepunch.Steamworks/Server.cs b/Facepunch.Steamworks/Server.cs index 5deb113..1aca880 100644 --- a/Facepunch.Steamworks/Server.cs +++ b/Facepunch.Steamworks/Server.cs @@ -47,17 +47,19 @@ public Server( uint appId, ServerInit init) : base( appId ) return; } - // - // Setup interfaces that client and server both have - // - SetupCommonInterfaces(); - // // Register Callbacks // SteamNative.Callbacks.RegisterCallbacks( this ); + // + // Setup interfaces that client and server both have + // + SetupCommonInterfaces(); + + + // // Initial settings //