Register callbacks before setting up interfaces

This commit is contained in:
Garry Newman 2018-03-21 11:17:46 +00:00
parent a40334551b
commit 144f401d2c
2 changed files with 12 additions and 10 deletions

View File

@ -84,17 +84,17 @@ public Client( uint appId ) : base( appId )
return; return;
} }
//
// Setup interfaces that client and server both have
//
SetupCommonInterfaces();
// //
// Register Callbacks // Register Callbacks
// //
SteamNative.Callbacks.RegisterCallbacks( this ); SteamNative.Callbacks.RegisterCallbacks( this );
//
// Setup interfaces that client and server both have
//
SetupCommonInterfaces();
// //
// Client only interfaces // Client only interfaces
// //

View File

@ -47,17 +47,19 @@ public Server( uint appId, ServerInit init) : base( appId )
return; return;
} }
//
// Setup interfaces that client and server both have
//
SetupCommonInterfaces();
// //
// Register Callbacks // Register Callbacks
// //
SteamNative.Callbacks.RegisterCallbacks( this ); SteamNative.Callbacks.RegisterCallbacks( this );
//
// Setup interfaces that client and server both have
//
SetupCommonInterfaces();
// //
// Initial settings // Initial settings
// //